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

Query time 0.00045

JSON explain

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