I embedded a script that calls the cache:clear symfony's console commands
in dev and prod modes
it sets before and after the corresponding user/groups
before because I am the user calling the script and then writing the cache files and directories
after because it is Apache who then be writing the cache files and directories
jpmena@jpmena-P34 ~/RIF/adherentss3/scripts/dev (master *) $ ./clearCache.sh
changing the proprietary/group of ../../var/cache
cleaning the symfony cache for dev mode
// Clearing the cache for the dev environment with debug true
[OK] Cache for the "dev" environment (debug=true) was successfully cleared.
cleaning the symfony cache for prod mode
// Clearing the cache for the prod environment with debug false
[OK] Cache for the "prod" environment (debug=false) was successfully cleared.
changing the proprietary/group of ../../var/cache
note that cleaning the only prod version of the cache would impair the apparition of the Debug Bar if app_dev.php were used in the address
it would throw an exception in the logs to be found in: adherentss3/var/logs ...