cluster_icon


While the title might sound a tad complicated, the problem is pretty straight forward:

Your production environment consists of a multi-server set-up (e.g. a cluster, but works on a single server just as well) with a centralised database and you use sfFileCache as your caching strategy (because you don’t want to litter your database with cache entries).

So how would you clear parts or all of the cache? You can’t just use symfony:cc or the sfViewCacheManager because:

  • It won’t work across applications, e.g. when triggered from your backend application, you won’t be able to clear the cache on your frontend.
  • It will only clear the cache on your current server, while the other servers still contain the old cache version.

Continue reading »

© 2011 burgiblog Suffusion theme by Sayontan Sinha