Skip to content

Commit

Permalink
don't call xcache_clear_cache on clearOpcodeCache() in case admin aut…
Browse files Browse the repository at this point in the history
…h is enabled for xcache in php.ini
  • Loading branch information
DeepDiver1975 committed Aug 9, 2013
1 parent 3569bbe commit 82f34f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/util.php
Expand Up @@ -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);
}
}
}

Expand Down

1 comment on commit 82f34f8

@Soeldner
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

Please sign in to comment.