Jump to:

3445 Posts in 1031 Topics by 872 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: 251 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.

    251 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.