Redis error
-
Hello! My debug.log is full of these messages:
PHP Warning: Redis::setex() expects parameter 2 to be int, string given in /var/www/public/zlata-studio.com.ua/wp-content/plugins/litespeed-cache/src/object-cache.cls.php on line 481
$res = $this->_conn->setEx( $key, $ttl, $data );
I’ve debugged it and it seems $ttl is equal to ‘et_get_main-menu’. My theme has following lines:
function et_get_main_menu( $menu_id = 'main-menu', $class = '' ) { $custom_menu_slug = 'custom_nav'; $cache_slug = 'et_get_' . $menu_id; if($menu_id == 'main-menu-right') $custom_menu_slug = 'custom_nav_right'; $custom_menu = etheme_get_custom_field( $custom_menu_slug ); $one_page_menu = ''; if(etheme_get_custom_field('one_page')) $one_page_menu = ' one-page-menu'; if(!empty($custom_menu) && $custom_menu != '') { $output = false; $output = wp_cache_get( $class, $custom_menu, $cache_slug );
How could I fix this issue?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Redis error’ is closed to new replies.