/** * Removes Page Cache cache directives * * @param SelfTestExceptions $exs * @throws FilesystemOperationException with S/FTP form if it can't get the required filesystem credentials * @throws FileOperationException */ private function rules_cache_remove($exs) { // apache's cache files are not used when core rules disabled if (!w3_is_nginx()) { return; } w3_remove_rules($exs, w3_get_pgcache_rules_cache_path(), W3TC_MARKER_BEGIN_PGCACHE_CACHE, W3TC_MARKER_END_PGCACHE_CACHE); }
/** * Removes Page Cache core directives * * @throws FilesystemOperationException with S/FTP form if it can't get the required filesystem credentials * @throws FileOperationException */ private function rules_wpmu_subfolder_remove($exs) { w3_remove_rules($exs, w3_get_browsercache_rules_cache_path(), W3TC_MARKER_BEGIN_MINIFY_CACHE, W3TC_MARKER_END_MINIFY_CACHE); }
/** * Removes Page Cache core directives * * @throws FilesystemOperationException with S/FTP form if it can't get the required filesystem credentials * @throws FileOperationException */ private function rules_remove($exs) { w3_remove_rules($exs, w3_get_new_relic_rules_core_path(), W3TC_MARKER_BEGIN_NEW_RELIC_CORE, W3TC_MARKER_END_NEW_RELIC_CORE); }
/** * Removes 404 directives * * @throws FilesystemOperationException with S/FTP form * @throws FileOperationException */ private function rules_no404wp_remove($exs) { w3_remove_rules($exs, w3_get_browsercache_rules_no404wp_path(), W3TC_MARKER_BEGIN_BROWSERCACHE_NO404WP, W3TC_MARKER_END_BROWSERCACHE_NO404WP); }
/** * Removes Page Cache core directives * * @param SelfTestExceptions $exs * @throws FilesystemOperationException with S/FTP form if it can't get the required filesystem credentials * @throws FileOperationException */ private function rules_remove($exs) { w3_remove_rules($exs, w3_get_browsercache_rules_cache_path(), W3TC_MARKER_BEGIN_CDN, W3TC_MARKER_END_CDN); }