wp_cache_verify_cache_dir()
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
wp_cache_verify_cache_dir();
Код wp_cache_verify_cache_dir() wp cache verify cache dir WPSCache 1.12.4
function wp_cache_verify_cache_dir() { global $cache_path, $blog_cache_dir; $dir = dirname($cache_path); if ( !file_exists($cache_path) ) { if ( !is_writeable_ACLSafe( $dir ) || !($dir = mkdir( $cache_path ) ) ) { echo "<strong>" . __( 'Error', 'wp-super-cache' ) . ":</strong> " . sprintf( __( 'Your cache directory (<strong>%1$s</strong>) did not exist and couldn’t be created by the web server. Check %1$s permissions.', 'wp-super-cache' ), $dir ); return false; } } if ( !is_writeable_ACLSafe($cache_path)) { echo "<strong>" . __( 'Error', 'wp-super-cache' ) . ":</strong> " . sprintf( __( 'Your cache directory (<strong>%1$s</strong>) or <strong>%2$s</strong> need to be writable for this plugin to work. Double-check it.', 'wp-super-cache' ), $cache_path, $dir ); return false; } if ( '/' != substr($cache_path, -1)) { $cache_path .= '/'; } if( false == is_dir( $blog_cache_dir ) ) { @mkdir( $cache_path . "blogs" ); if( $blog_cache_dir != $cache_path . "blogs/" ) @mkdir( $blog_cache_dir ); } if( false == is_dir( $blog_cache_dir . 'meta' ) ) @mkdir( $blog_cache_dir . 'meta' ); wp_cache_add_index_protection(); return true; }