We are using symfony 1.4 on our development machine
traditional way to cache partial in symfony is by editing cache.yml
something:
enabled: true
lifetime: true
this will store cache on the disk
but we want to store cache on memcache instead on disk.
so, the question is how to cache symfony partial in memcache
Symfony partial cache work like all other cache in symfony: it refers to
view_cachepart ofapps/frontend/config/factories.yml.For example, if you want to store your cache in SQLite database:
So if you want to store these information into Memcached, you should use the
sfMemcacheCache.class.phpclass:OR