diff --git a/src/Chamilo/CoreBundle/Composer/ScriptHandler.php b/src/Chamilo/CoreBundle/Composer/ScriptHandler.php index a36ad4bd5c..179e7156b0 100644 --- a/src/Chamilo/CoreBundle/Composer/ScriptHandler.php +++ b/src/Chamilo/CoreBundle/Composer/ScriptHandler.php @@ -19,9 +19,18 @@ class ScriptHandler $newPath = __DIR__.'/../../../../web'; $fs = new Filesystem(); $fs->mirror($appCss, $newPath, null, ['override' => true]); + if ($fs->exists(__DIR__.'/../../../../web/build')) { $fs->remove(__DIR__.'/../../../../web/build'); } + + if ($fs->exists(__DIR__.'/../../../../app/cache/twig')) { + $fs->remove(__DIR__.'/../../../../app/cache/twig'); + } + + if (function_exists('opcache_reset')) { + opcache_reset(); + } } /**