Fix tmp directories cleanup

This commit is contained in:
Romain Neutron
2013-09-02 17:13:18 +02:00
parent 629afb93ff
commit ba980d5f34
6 changed files with 15 additions and 1 deletions

View File

@@ -34,6 +34,8 @@ class FilesystemRequirements extends RequirementCollection implements Requiremen
$baseDir . '/www/custom', $baseDir . '/www/custom',
$baseDir . '/tmp/locks', $baseDir . '/tmp/locks',
$baseDir . '/tmp/cache_twig', $baseDir . '/tmp/cache_twig',
$baseDir . '/tmp/serializer',
$baseDir . '/tmp/doctrine',
$baseDir . '/tmp/cache_minify', $baseDir . '/tmp/cache_minify',
$baseDir . '/tmp/lazaret', $baseDir . '/tmp/lazaret',
$baseDir . '/tmp/desc_tmp', $baseDir . '/tmp/desc_tmp',

View File

@@ -322,6 +322,9 @@ class appbox extends base
$finder->in(array( $finder->in(array(
$this->app['root.path'] . '/tmp/cache_minify/', $this->app['root.path'] . '/tmp/cache_minify/',
$this->app['root.path'] . '/tmp/cache_twig/', $this->app['root.path'] . '/tmp/cache_twig/',
$this->app['root.path'] . '/tmp/cache/profiler/',
$this->app['root.path'] . '/tmp/doctrine/',
$this->app['root.path'] . '/tmp/serializer/',
)) ))
->depth(0) ->depth(0)
->ignoreVCS(true) ->ignoreVCS(true)

View File

@@ -41,7 +41,10 @@ class module_console_systemClearCache extends Command
->exclude('.svn') ->exclude('.svn')
->in(array( ->in(array(
$this->container['root.path'] . '/tmp/cache_minify/', $this->container['root.path'] . '/tmp/cache_minify/',
$this->container['root.path'] . '/tmp/cache_twig/' $this->container['root.path'] . '/tmp/cache_twig/',
$this->container['root.path'] . '/tmp/cache/profiler/',
$this->container['root.path'] . '/tmp/doctrine/',
$this->container['root.path'] . '/tmp/serializer/',
)); ));
$filesystem = new Filesystem(); $filesystem = new Filesystem();

2
tmp/cache/profiler/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
*
!.gitignore

2
tmp/doctrine/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
*
!.gitignore

2
tmp/serializer/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
*
!.gitignore