/** * Removes Page Cache core directives * * @param Util_Environment_Exceptions $exs * @throws Util_WpFile_FilesystemOperationException with S/FTP form if it can't get the required filesystem credentials */ private function rules_cache_remove($exs) { // apache's cache files are not used when core rules disabled if (!Util_Environment::is_nginx()) { return; } Util_Rule::remove_rules($exs, Util_Rule::get_minify_rules_cache_path(), W3TC_MARKER_BEGIN_MINIFY_CACHE, W3TC_MARKER_END_MINIFY_CACHE); }
/** * Removes 404 directives * * @throws Util_WpFile_FilesystemOperationException with S/FTP form */ private function rules_no404wp_remove($exs) { Util_Rule::remove_rules($exs, Util_Rule::get_browsercache_rules_no404wp_path(), W3TC_MARKER_BEGIN_BROWSERCACHE_NO404WP, W3TC_MARKER_END_BROWSERCACHE_NO404WP); }
/** * Removes Page Cache core directives * * @param Util_Environment_Exceptions $exs * @throws Util_WpFile_FilesystemOperationException with S/FTP form if it can't get the required filesystem credentials */ private static function rules_remove($exs) { Util_Rule::remove_rules($exs, Util_Rule::get_pgcache_rules_core_path(), W3TC_MARKER_BEGIN_FEEDBURNER, W3TC_MARKER_END_FEEDBURNER); }
/** * Removes Page Cache core directives * * @param Util_Environment_Exceptions $exs * @throws Util_WpFile_FilesystemOperationException with S/FTP form if it can't get the required filesystem credentials */ private function rules_remove($exs) { Util_Rule::remove_rules($exs, Util_Rule::get_browsercache_rules_cache_path(), W3TC_MARKER_BEGIN_CDN, W3TC_MARKER_END_CDN); }