Commit 9691195a authored by Rolf Forst's avatar Rolf Forst
Browse files

Merge branch 'dev' into 'master'

Dev

See merge request !12
parents 94a61a5b 00cb98c6
......@@ -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;
}
......
......@@ -4,7 +4,7 @@
Plugin Name: RRZE Cache
Plugin URI: https://gitlab.rrze.fau.de/rrze-webteam/rrze-cache
Description: Advanced cache management.
Version: 2.4.0
Version: 2.5.0
Author: RRZE-Webteam
Author URI: https://blogs.fau.de/webworking/
License: GNU General Public License v2
......
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