Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
RRZE Webteam
RRZE Cache
Commits
662957a2
Commit
662957a2
authored
Nov 02, 2020
by
Rolf Forst
Browse files
Fix skip_cache(); disable hook _core_updated_successfully
parent
d0f9217e
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/Main.php
View file @
662957a2
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment