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

Query time 0.03753

JSON explain

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