Skip to content
Permalink
Browse files

don't call xcache_clear_cache on clearOpcodeCache() in case admin aut…

…h is enabled for xcache in php.ini
  • Loading branch information
DeepDiver1975 committed Aug 9, 2013
1 parent 3569bbe commit 82f34f8c76dd9467480f601fe835a900dd912923
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/util.php
@@ -851,7 +851,11 @@ public static function clearOpcodeCache() {
}
// XCache
if (function_exists('xcache_clear_cache')) {
xcache_clear_cache(XC_TYPE_VAR, 0);
if (ini_get('xcache.admin.enable_auth')) {
OC_Log::write('core', 'XCache will not be cleared because "xcache.admin.enable_auth" is enabled in php.ini.', \OC_Log::WARN);
} else {
xcache_clear_cache(XC_TYPE_VAR, 0);
}
}
}

1 comment on commit 82f34f8

@Soeldner

This comment has been minimized.

Copy link

@Soeldner Soeldner commented on 82f34f8 Sep 30, 2013

thanks

Please sign in to comment.
You can’t perform that action at this time.