SELECT 
  data, 
  expiry 
FROM 
  cscart_cache 
WHERE 
  name = 'scheme_block.cache_customer__1scheme_block_breadcrumbs' 
  AND company_id = 0 
  AND (
    expiry = 0 
    OR expiry > 1776178359
  )

Query time 0.00030

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_cache",
          "access_type": "const",
          "possible_keys": ["PRIMARY", "name", "company_id"],
          "key": "PRIMARY",
          "key_length": "771",
          "used_key_parts": ["name", "company_id"],
          "ref": ["const", "const"],
          "rows": 1,
          "filtered": 100
        }
      }
    ]
  }
}

Result

data expiry
a:6:{s:9:"templates";a:1:{s:22:"common/breadcrumbs.tpl";a:1:{s:4:"name";s:11:"breadcrumbs";}}s:8:"wrappers";a:6:{s:34:"blocks/wrappers/footer_general.tpl";a:1:{s:4:"name";s:14:"footer_general";}s:35:"blocks/wrappers/mainbox_general.tpl";a:1:{s:4:"name";s:15:"mainbox_general";}s:34:"blocks/wrappers/mainbox_simple.tpl";a:1:{s:4:"name";s:14:"mainbox_simple";}s:36:"blocks/wrappers/onclick_dropdown.tpl";a:1:{s:4:"name";s:16:"onclick_dropdown";}s:35:"blocks/wrappers/sidebox_general.tpl";a:1:{s:4:"name";s:15:"sidebox_general";}s:37:"blocks/wrappers/sidebox_important.tpl";a:1:{s:4:"name";s:17:"sidebox_important";}}s:27:"cache_overrides_by_dispatch";a:4:{s:15:"categories.view";a:3:{s:16:"request_handlers";a:1:{i:0;s:11:"category_id";}s:18:"disable_cache_when";a:1:{s:16:"request_handlers";a:4:{i:0;s:8:"price_to";i:1;s:10:"price_from";i:2;s:13:"features_hash";i:3;s:7:"subcats";}}s:15:"update_handlers";a:2:{i:0;s:10:"categories";i:1;s:21:"category_descriptions";}}s:13:"products.view";a:3:{s:16:"request_handlers";a:1:{i:0;s:10:"product_id";}s:16:"session_handlers";a:1:{i:0;s:34:"last_view.lv_products.view_results";}s:15:"update_handlers";a:5:{i:0;s:8:"products";i:1;s:20:"product_descriptions";i:2;s:19:"products_categories";i:3;s:10:"categories";i:4;s:21:"category_descriptions";}}s:10:"pages.view";a:2:{s:16:"request_handlers";a:1:{i:0;s:7:"page_id";}s:15:"update_handlers";a:2:{i:0;s:5:"pages";i:1;s:17:"page_descriptions";}}s:18:"companies.products";a:3:{s:16:"request_handlers";a:2:{i:0;s:10:"company_id";i:1;s:11:"category_id";}s:18:"disable_cache_when";a:1:{s:16:"request_handlers";a:1:{i:0;s:13:"features_hash";}}s:15:"update_handlers";a:3:{i:0;s:10:"categories";i:1;s:21:"category_descriptions";i:2;s:9:"companies";}}}s:4:"type";s:11:"breadcrumbs";s:7:"content";a:0:{}s:13:"is_manageable";b:1;} 0