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

Query time 0.00045

JSON explain

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