diff --git a/wp-content/themes/dekart/functions.php b/wp-content/themes/dekart/functions.php index 2375108..c3b72f5 100644 --- a/wp-content/themes/dekart/functions.php +++ b/wp-content/themes/dekart/functions.php @@ -2525,12 +2525,8 @@ function dekart_ajax_flush_cache() { // ── 6. WP object cache flush ── $log[] = array( 'type' => 'info', 'text' => '🔍 Очистка объектного кеша:' ); if ( function_exists( 'wp_cache_flush' ) ) { - $flushed = wp_cache_flush(); - if ( $flushed ) { - $log[] = array( 'type' => 'ok', 'text' => 'wp_cache_flush() — успешно' ); - } else { - $log[] = array( 'type' => 'warn', 'text' => 'wp_cache_flush() — не выполнен (кеш не активен?)' ); - } + wp_cache_flush(); + $log[] = array( 'type' => 'ok', 'text' => 'wp_cache_flush() — выполнен (ключи ротированы)' ); } else { $log[] = array( 'type' => 'warn', 'text' => 'wp_cache_flush() — функция не найдена (drop-in не установлен)' ); }