Skip to content
Snippets Groups Projects
Commit 13366617 authored by Ernesto Baschny's avatar Ernesto Baschny
Browse files

[BUGFIX] OpCache XCache cannot be cleared if xcache.admin.enable_auth

We can only clear the opcache in XCache if xcache.admin.enable_auth is not
set, else you get a fatal error.

Resolves: #56554
Related: #55252
Releases: 6.2
Change-Id: Ia33afc4141852c58266f6c7dfedec82f4c35148d
Reviewed-on: https://review.typo3.org/28059
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Ernesto Baschny
Tested-by: Ernesto Baschny
parent 3dbd96c9
Branches
Tags
No related merge requests found
......@@ -120,7 +120,9 @@ class OpcodeCacheUtility {
'canInvalidate' => FALSE,
'error' => FALSE,
'clearCallback' => function ($fileAbsPath) {
xcache_clear_cache(XC_TYPE_PHP);
if (!ini_get('xcache.admin.enable_auth')) {
xcache_clear_cache(XC_TYPE_PHP);
}
}
),
......
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