SELECT 
  data, 
  expiry 
FROM 
  cscart_cache 
WHERE 
  name = 'fn_get_products.cache_customerd401e3e35ce85435bb12374a0aa9dce5' 
  AND company_id = 0 
  AND (
    expiry = 0 
    OR expiry > 1776411500
  )

Query time 0.00032

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "message": "Impossible WHERE noticed after reading const tables"
    }
  }
}