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

Query time 0.00965

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:8:{s:7:"content";a:1:{s:5:"items";a:6:{s:4:"type";s:4:"enum";s:6:"object";s:7:"filters";s:14:"items_function";s:45:"fn_product_filters_get_filters_products_count";s:13:"remove_indent";b:1;s:10:"hide_label";b:1;s:8:"fillings";a:1:{s:8:"manually";a:3:{s:6:"params";a:3:{s:14:"check_location";b:1;s:7:"request";a:15:{s:8:"dispatch";s:10:"%DISPATCH%";s:11:"category_id";s:13:"%CATEGORY_ID%";s:13:"features_hash";s:15:"%FEATURES_HASH%";s:10:"variant_id";s:12:"%VARIANT_ID%";s:10:"company_id";s:12:"%COMPANY_ID%";s:1:"q";s:3:"%Q%";s:16:"search_performed";s:18:"%SEARCH_PERFORMED%";s:6:"pshort";s:8:"%PSHORT%";s:5:"pfull";s:7:"%PFULL%";s:5:"pname";s:7:"%PNAME%";s:12:"pcode_from_q";s:14:"%PCODE_FROM_Q%";s:9:"pkeywords";s:11:"%PKEYWORDS%";s:3:"pid";s:5:"%PID%";s:9:"order_ids";s:11:"%ORDER_IDS%";s:5:"match";s:7:"%MATCH%";}s:19:"process_empty_items";b:1;}s:6:"picker";s:26:"pickers/filters/picker.tpl";s:13:"picker_params";a:3:{s:8:"multiple";b:1;s:9:"extra_url";s:9:"&status=A";s:12:"no_item_text";s:19:"All product filters";}}}}}s:9:"templates";a:3:{s:58:"blocks/product_filters/for_category/horizontal_filters.tpl";a:1:{s:4:"name";s:18:"horizontal_filters";}s:48:"blocks/product_filters/for_category/original.tpl";a:1:{s:4:"name";s:8:"original";}s:56:"blocks/product_filters/for_category/selected_filters.tpl";a:1:{s:4:"name";s:16:"selected_filters";}}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:5:"cache";a:4:{s:16:"request_handlers";a:4:{i:0;s:11:"category_id";i:1;s:7:"sort_by";i:2;s:14:"items_per_page";i:3;s:10:"variant_id";}s:18:"disable_cache_when";a:1:{s:16:"request_handlers";a:5:{i:0;s:8:"price_to";i:1;s:10:"price_from";i:2;s:13:"features_hash";i:3;s:1:"q";i:4;s:9:"filter_id";}}s:15:"update_handlers";a:12:{i:0;s:15:"product_filters";i:1;s:27:"product_filter_descriptions";i:2;s:21:"product_filter_ranges";i:3;s:34:"product_filter_ranges_descriptions";i:4;s:24:"product_feature_variants";i:5;s:36:"product_feature_variant_descriptions";i:6;s:16:"product_features";i:7;s:29:"product_features_descriptions";i:8;s:23:"product_features_values";i:9;s:8:"products";i:10;s:9:"companies";i:11;s:21:"storefronts_companies";}s:17:"callable_handlers";a:1:{s:8:"currency";a:1:{i:0;s:25:"fn_get_secondary_currency";}}}s:19:"brief_info_function";s:34:"fn_block_get_block_with_items_info";s:27:"cache_overrides_by_dispatch";a:1:{s:18:"companies.products";a:4:{s:16:"request_handlers";a:5:{i:0;s:11:"category_id";i:1;s:7:"sort_by";i:2;s:14:"items_per_page";i:3;s:10:"variant_id";i:4;s:10:"company_id";}s:18:"disable_cache_when";a:1:{s:16:"request_handlers";a:5:{i:0;s:8:"price_to";i:1;s:10:"price_from";i:2;s:13:"features_hash";i:3;s:1:"q";i:4;s:9:"filter_id";}}s:15:"update_handlers";a:10:{i:0;s:15:"product_filters";i:1;s:27:"product_filter_descriptions";i:2;s:21:"product_filter_ranges";i:3;s:34:"product_filter_ranges_descriptions";i:4;s:24:"product_feature_variants";i:5;s:36:"product_feature_variant_descriptions";i:6;s:16:"product_features";i:7;s:29:"product_features_descriptions";i:8;s:23:"product_features_values";i:9;s:8:"products";}s:17:"callable_handlers";a:1:{s:8:"currency";a:1:{i:0;s:25:"fn_get_secondary_currency";}}}}s:4:"type";s:15:"product_filters";s:13:"is_manageable";b:1;} 0