Skip to content

Commit a670061

Browse files
committed
[FrameworkBundle] Fix ClassCacheWarme when classes.php is already warmed
1 parent c817319 commit a670061

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CacheWarmer/ClassCacheCacheWarmer.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ public function warmUp($cacheDir)
3434
return;
3535
}
3636

37+
if (file_exists($cacheDir.'/classes.php')) {
38+
return;
39+
}
40+
3741
ClassCollectionLoader::load(include($classmap), $cacheDir, 'classes', false);
3842
}
3943

0 commit comments

Comments
 (0)