Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Template Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Cache only works in some ss files


Go to End


906 Views

Avatar
naifas

Community Member, 1 Post

21 September 2012 at 3:54am

Hello,

I've been trying to implement the <% cached %> <% end_cached %> in my website and I'm trying to cache the header and footer. Each one have its own .SS template and cached tags only work on footer.
zendcache files are being generated for both, but only footer uses it.

I've SS_Cache::set_cache_lifetime($for = 'any', $lifetime = 3600, $priority = 100); in my site _config.php.

Any thoughts about this problem that I'm having troubled with?

Best Regards.