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

Query time 0.00032

JSON explain

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