Commit 9968448a authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

#61810 répertoire cache non supprimé mais vidé

parent f86077a9
Loading
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -25,7 +25,12 @@ class AdministrationService
        // Suppression des fichiers de cache
        $cachePath = getcwd() . '/cache';
        if ($filesystem->exists($cachePath)) {
            $filesystem->remove($cachePath);
            $content = scandir($cachePath);
            foreach( $content as $toRemove) {
                if ($toRemove != '.' && $toRemove != '..' ) {
                    $filesystem->remove($cachePath . '/' . $toRemove);
                }
            }
        }

        // Nettoyage des proxies