I try to cache some components and partials in my symfony project.
I set cache.yml
for caching and turned on cache for dev environment in settings.yml
. When I refresh my website the cache boxes are blue but I think they should be yellow as the doc says :
if boxes are yellow the partial is taken from cache
My caching is not working. Does anybody know why it happen?
Solved.
factories.yml
view_cache:
class: sfFileCache
param:
automatic_cleaning_factor: 0
cache_dir: %SF_TEMPLATE_CACHE_DIR%
lifetime: 86400
prefix: %SF_APP_DIR%/template
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.