Commit 662957a2 authored by Rolf Forst's avatar Rolf Forst
Browse files

Fix skip_cache(); disable hook _core_updated_successfully

parent d0f9217e
......@@ -44,7 +44,7 @@ class Main
add_action('rrzecache_flush_cache', [__NAMESPACE__ . '\Flush', 'flushCache']);
add_action('_core_updated_successfully', [__NAMESPACE__ . '\Flush', 'flushAllCache']);
//add_action('_core_updated_successfully', [__NAMESPACE__ . '\Flush', 'flushAllCache']);
add_action('switch_theme', [__NAMESPACE__ . '\Flush', 'flushCache']);
......@@ -258,7 +258,7 @@ class Main
</div>
<?php endif ?>
</div>
<?php
<?php
}
public function template_redirect()
......@@ -305,7 +305,7 @@ class Main
protected function is_index()
{
return basename($_SERVER['SCRIPT_NAME']) == 'index.php';
return basename($_SERVER['SCRIPT_NAME']) === 'index.php';
}
protected function is_logged_in()
......@@ -346,7 +346,7 @@ class Main
return true;
}
if (!empty($_POST) || (!empty($_GET) && get_option('permalink_structure') && !isset($_GET['utm_source'], $_GET['utm_medium'], $_GET['utm_campaign']))) {
if (!empty($_POST) || (!empty($_GET) && get_option('permalink_structure'))) {
return true;
}
......@@ -361,7 +361,7 @@ class Main
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