[BUGFIX] OpCache XCache cannot be cleared if xcache.admin.enable_auth
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Utility / OpcodeCacheUtility.php
index 8caf97c..af78c5d 100644 (file)
@@ -120,7 +120,9 @@ class OpcodeCacheUtility {
                                'canInvalidate' => FALSE,
                                'error' => FALSE,
                                'clearCallback' => function ($fileAbsPath) {
                                '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);
+                                       }
                                }
                        ),
 
                                }
                        ),