$this->cacheClearer->
clear($this->cacheDir
);
if ($this->clusterMode
) { // In cluster mode we can't delete caches on the filesystem
// because this only runs on one node in the cluster
return;
} $this->filesystem->
remove($this->cacheDir . '/twig'
);
$this->
cleanupUrlGeneratorCacheFiles();
$this->
cleanupOldContainerCacheDirectories();
} public function clearContainerCache(): void
{ if ($this->clusterMode
) { // In cluster mode we can't delete caches on the filesystem
// because this only runs on one node in the cluster
return;
}