Post commit to clear cache :D

So whenever you commit you can spot changes or errors of your own. Will save you time.

// .git/hooks/post-commit
#!/usr/bin/env php
system('rm -rf app/cache/*');
system('php app/console cache:clear --env=dev --no-debug');

One thought on “Post commit to clear cache :D

Leave a Reply to Nek Cancel reply

Your email address will not be published. Required fields are marked *