symfony/symfony — Issue #3453: cache:clear makes invalid references to app/cache/prod_new in appProdProjectContainer.php
Author: doliver3
Created: 2012-02-26 06:03:31+00:00
State: open

1. cd to the app directory

2. run this command
php console cache:clear --env=prod --no-debug

3. Even though the cache is cleared and warmed up, the command temporarily creates a prod_new directory then moves the files to the prod directory. However, the appProdProjectContainer.php still contains references to the prod_new directory not the prod directory where the files were moved.

4. So the next time one runs the same command:
php console cache:clear --env=prod --no-debug
you get an error - Unable to write to the ...prod_new directory