Wednesday, October 31, 2012

Automatic cache busting using Git commit in Symfony2

The idea is to use the current Git commit as a version number using git rev-parse --short HEAD. We can call this in the command line using PHP. Don’t worry, in production mode, Symfony caches the compiled configs, so it won’t be checked until you clear the cache.

Läs hela här.

No comments: