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

Query time 0.00027

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:8:{s:7:"content";a:2:{s:5:"items";a:2:{s:4:"type";s:8:"function";s:8:"function";a:1:{i:0;s:32:"fn_abt__ut2_get_fly_menu_content";}}s:13:"settings_link";a:4:{s:4:"type";s:8:"template";s:8:"template";s:74:"addons/abt__unitheme2/views/abt__ut2/components/fly_menu_settings_link.tpl";s:13:"remove_indent";b:1;s:10:"hide_label";b:1;}}s:9:"templates";a:1:{s:50:"addons/abt__unitheme2/blocks/abt__ut2_fly_menu.tpl";a:2:{s:8:"settings";a:4:{s:19:"abt_menu_icon_items";a:3:{s:4:"type";s:8:"checkbox";s:13:"default_value";s:1:"N";s:7:"tooltip";s:121:"The active status of this setting allows the display of an icon that is assigned to a menu item of the second level menu.";}s:36:"no_hidden_elements_second_level_view";a:3:{s:4:"type";s:5:"input";s:13:"default_value";s:2:"10";s:7:"tooltip";s:275:"This setting limits the number of elements in the second level of the menu structure. If there is a link or specified category at the parent element of the first level, the link <b>More</b> (with the parent category name) will be displayed to transfer to the parent category.";}s:36:"elements_per_column_third_level_view";a:3:{s:4:"type";s:5:"input";s:13:"default_value";s:1:"5";s:7:"tooltip";s:185:"This setting limits the number of elements in the third level of the menu structure. The remaining menu elements of the third level will be displayed when clicking the link <b>More</b>.";}s:19:"abt__ut2_show_title";a:2:{s:4:"type";s:8:"checkbox";s:13:"default_value";s:1:"N";}}s:4:"name";s:17:"abt__ut2_fly_menu";}}s:13:"multilanguage";b:0;s:19:"single_for_location";b:1;s:8:"settings";a:1:{s:27:"open_on_sticky_panel_button";a:4:{s:4:"type";s:8:"checkbox";s:13:"default_value";s:1:"N";s:11:"option_name";s:42:"abt__ut2.block.open_on_sticky_panel_button";s:7:"tooltip";s:60:"For blocks only that were added with the theme AB: UniTheme2";}}s:4:"type";s:17:"abt__ut2_fly_menu";s:8:"wrappers";a:0:{}s:13:"is_manageable";b:1;} 0