Commit 394abcc2 authored by Rolf Forst's avatar Rolf Forst
Browse files

Update Cache.php

parent 9590a590
......@@ -31,11 +31,6 @@ class Cache
{
$this->setCacheFiles();
if (apply_filters('rrzecache_skip_cache', false)) {
Flush::flushCache();
return;
}
add_action('init', [$this, 'add_publish_hooks'], 99);
add_action('pre_comment_approved', [$this, 'pre_comment_approved'], 99, 2);
add_action('transition_comment_status', [$this, 'transition_comment_status'], 10, 3);
......@@ -276,6 +271,10 @@ class Cache
return true;
}
if (apply_filters('rrzecache_skip_cache', false)) {
return true;
}
if (is_search() || is_404() || is_feed() || is_trackback() || is_robots() || is_preview() || post_password_required()) {
return true;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment