MDL-40415 add explicit OPcache support

This commit is contained in:
Petr Škoda
2013-07-04 19:32:26 +02:00
parent f8e6e5bc30
commit c05a50992e
17 changed files with 136 additions and 0 deletions
+6
View File
@@ -26,6 +26,12 @@ if (isset($_SERVER['REMOTE_ADDR'])) {
die(); // No access from web!
}
// Force OPcache reset if used, we do not want any stale caches
// when preparing test environment.
if (function_exists('opcache_reset')) {
opcache_reset();
}
// Is not really necessary but adding it as is a CLI_SCRIPT.
define('CLI_SCRIPT', true);