File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -246,23 +246,14 @@ private static function createAndInitializeModuleFinder(Event $event): ModuleFin
246
246
}
247
247
248
248
/**
249
- * Clears the caches of all environments.
250
- *
251
- * @param Event $event
249
+ * Clears the caches of all environments. This does not warm the caches.
252
250
*
253
251
* @return void
254
252
*/
255
- public static function clearAllCaches (Event $ event )
253
+ public static function clearAllCaches ()
256
254
{
257
- $ environments = ['test ' , 'dev ' , 'prod ' ];
258
- $ consoleDir = self ::getConsoleDir ($ event , 'clear the cache ' );
259
- if ($ consoleDir === null ) {
260
- return ;
261
- }
262
-
263
- foreach ($ environments as $ environment ) {
264
- self ::executeCommand ($ event , $ consoleDir , 'cache:clear --no-warmup -e ' . $ environment );
265
- }
255
+ $ fileSystem = new Filesystem ();
256
+ $ fileSystem ->remove (self ::getApplicationRoot () . '/var/cache ' );
266
257
}
267
258
268
259
/**
You can’t perform that action at this time.
0 commit comments