version stable 0.2.0
This commit is contained in:
@@ -4,14 +4,13 @@ declare(strict_types=1);
|
||||
|
||||
// Force OPcache to reload plugin files when accessed via web
|
||||
if (PHP_SAPI !== 'cli' && function_exists('opcache_invalidate')) {
|
||||
opcache_invalidate(__FILE__, true);
|
||||
$capacity_file = __DIR__ . '/src/Capacity/UrBackupCapacity.php';
|
||||
if (file_exists($capacity_file)) {
|
||||
opcache_invalidate($capacity_file, true);
|
||||
}
|
||||
$asset_tab_file = __DIR__ . '/src/AssetTab.php';
|
||||
if (file_exists($asset_tab_file)) {
|
||||
opcache_invalidate($asset_tab_file, true);
|
||||
$files = new RecursiveIteratorIterator(
|
||||
new RecursiveDirectoryIterator(__DIR__, RecursiveDirectoryIterator::SKIP_DOTS)
|
||||
);
|
||||
foreach ($files as $file) {
|
||||
if ($file->getExtension() === 'php') {
|
||||
@opcache_invalidate($file->getRealPath(), true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user