Jump to:

3432 Posts in 1025 Topics by 865 members

Template Questions

SilverStripe Forums » Template Questions » Cache only works in some ss files

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

Page: 1
Go to End
Author Topic: 235 Views
  • naifas
    Avatar
    Community Member
    1 Post

    Cache only works in some ss files Link to this post

    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.

    235 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.