SELECT 
  data, 
  expiry 
FROM 
  cscart_cache 
WHERE 
  name = 'template_overrides.cache_customer9e1b34feafbc7f6cfe553acbf37a9905' 
  AND company_id = 0 
  AND (
    expiry = 0 
    OR expiry > 1781872988
  )

Query time 0.00029

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "1.00"
    },
    "table": {
      "table_name": "cscart_cache",
      "access_type": "const",
      "possible_keys": [
        "PRIMARY",
        "name",
        "company_id"
      ],
      "key": "PRIMARY",
      "used_key_parts": [
        "name",
        "company_id"
      ],
      "key_length": "771",
      "ref": [
        "const",
        "const"
      ],
      "rows_examined_per_scan": 1,
      "rows_produced_per_join": 1,
      "filtered": "100.00",
      "cost_info": {
        "read_cost": "0.00",
        "eval_cost": "0.20",
        "prefix_cost": "0.00",
        "data_read_per_join": "1K"
      },
      "used_columns": [
        "name",
        "company_id",
        "data",
        "expiry"
      ]
    }
  }
}

Result

data expiry
a:26:{s:32:"234c1d90d10462316665125cb54cda26";s:96:"/app/design/themes/responsive/templates/addons/direct_payments/overrides/blocks/cart_content.tpl";s:32:"e5603dbe8ef718837a9541207ea09142";s:96:"/app/design/themes/responsive/templates/addons/direct_payments/overrides/blocks/cart_content.tpl";s:32:"1226865ee7a8e61dec2f59bffc43f747";s:96:"/app/design/themes/responsive/templates/addons/recaptcha/overrides/common/image_verification.tpl";s:32:"3d79d4252f29410547a77047a3dbe3c0";s:96:"/app/design/themes/responsive/templates/addons/recaptcha/overrides/common/image_verification.tpl";s:32:"6d79d4f9f75204cf794fc3c49b7abf4c";s:137:"/app/design/themes/abt__unitheme2/templates/addons/ab__category_banners/overrides/blocks/product_list_templates/products_multicolumns.tpl";s:32:"32c8e9437d3e22bba90cb5630117aab7";s:137:"/app/design/themes/abt__unitheme2/templates/addons/ab__category_banners/overrides/blocks/product_list_templates/products_multicolumns.tpl";s:32:"7a5ed16f20af3ff24770ed71c1b2157e";s:140:"/app/design/themes/abt__unitheme2/templates/addons/ab__category_banners/overrides/blocks/product_list_templates/products_without_options.tpl";s:32:"dbd453aa29f7f2ddd8ea70a946b0a452";s:140:"/app/design/themes/abt__unitheme2/templates/addons/ab__category_banners/overrides/blocks/product_list_templates/products_without_options.tpl";s:32:"f604d1ed6f691ba0c703bfd363daf0a3";s:126:"/app/design/themes/abt__unitheme2/templates/addons/ab__category_banners/overrides/blocks/product_list_templates/short_list.tpl";s:32:"7a631607baf20aeed9207a75d6031850";s:126:"/app/design/themes/abt__unitheme2/templates/addons/ab__category_banners/overrides/blocks/product_list_templates/short_list.tpl";s:32:"f908cb0f3d5f1340a0c07959086a842d";s:106:"/app/design/themes/abt__unitheme2/templates/addons/ab__deal_of_the_day/overrides/views/promotions/list.tpl";s:32:"26a32f1f836b76b366d281129045363f";s:106:"/app/design/themes/abt__unitheme2/templates/addons/ab__deal_of_the_day/overrides/views/promotions/list.tpl";s:32:"78933c84e787a193e74f888b708ed3aa";s:124:"/app/design/themes/responsive/templates/addons/ab__hide_product_description/overrides/views/tabs/components/product_tabs.tpl";s:32:"905e2bc35e05ff85f2fadb8c05601bc9";s:124:"/app/design/themes/responsive/templates/addons/ab__hide_product_description/overrides/views/tabs/components/product_tabs.tpl";s:32:"7cf6d0bc0364e0457b1089b2e11187fa";s:123:"/app/design/themes/abt__unitheme2/templates/addons/ab__video_gallery/overrides/views/products/components/product_images.tpl";s:32:"4cadf97f87863349220b998205a740b5";s:123:"/app/design/themes/abt__unitheme2/templates/addons/ab__video_gallery/overrides/views/products/components/product_images.tpl";s:32:"1f3b01871946eb0e1adf65fead5e7953";s:143:"/app/design/themes/abt__unitheme2/templates/addons/ab__motivation_block/overrides/addons/geo_maps/hooks/products/product_block_content.post.tpl";s:32:"515fb097195eeb0990b1ea485c812a47";s:143:"/app/design/themes/abt__unitheme2/templates/addons/ab__motivation_block/overrides/addons/geo_maps/hooks/products/product_block_content.post.tpl";s:32:"cdb532a272edd5fa9eba7e61c67b9ef8";s:142:"/app/design/themes/abt__unitheme2/templates/addons/ab__motivation_block/overrides/addons/geo_maps/hooks/products/product_detail_bottom.pre.tpl";s:32:"973c7ffe13f4f9845c01b7c220cb60df";s:142:"/app/design/themes/abt__unitheme2/templates/addons/ab__motivation_block/overrides/addons/geo_maps/hooks/products/product_detail_bottom.pre.tpl";s:32:"60f20b329475ff97a5c79e5d3b99b49f";s:129:"/app/design/themes/abt__unitheme2/templates/addons/ab__motivation_block/overrides/addons/geo_maps/hooks/products/geo_maps.pre.tpl";s:32:"26d3df4a69d58b10ef9cd7ed0f09994a";s:129:"/app/design/themes/abt__unitheme2/templates/addons/ab__motivation_block/overrides/addons/geo_maps/hooks/products/geo_maps.pre.tpl";s:32:"8a10856ffe4cc9d0ed3abb1164776b76";s:98:"/app/design/themes/responsive/templates/addons/ab__image_previewers/overrides/common/previewer.tpl";s:32:"f35a88298a9e92ad6de803999f89609e";s:98:"/app/design/themes/responsive/templates/addons/ab__image_previewers/overrides/common/previewer.tpl";s:32:"9ee96c10d0849a38ea30f9f2d673c070";s:136:"/app/design/themes/abt__unitheme2/templates/addons/rus_cities/overrides/views/checkout/components/profile_fields/s_city_autocomplete.tpl";s:32:"33d0561deee3d605a8b1b9a97381f681";s:136:"/app/design/themes/abt__unitheme2/templates/addons/rus_cities/overrides/views/checkout/components/profile_fields/s_city_autocomplete.tpl";} 0