Welcome Guest, Not a member yet? Register   Sign In
How to cache only a part of a view (included views)?
#6

[eluser]boltsabre[/eluser]
To the best of my knowledge, you cannot cache "part of a page" in the browser (if this is what you mean?).

You can cache the entire page, or nothing... that's it.

So you'd want to cache all your static pages, and those that are dynamic (lets say a blog page with commenting) perhaps refresh that page every hour or whatever suits your purposes best(on the form where users submit a comment, put a little message saying "Comments will be only be published after passing our manual review process" - you should have some kind of automatic "spam checking" at the very minimum, and this note will, hopefully, detract possible human (but not bot) spammers from even trying to spam your blog).

Then you have DB caches, but that's another story entirely.


Messages In This Thread
How to cache only a part of a view (included views)? - by El Forum - 07-19-2012, 02:53 AM
How to cache only a part of a view (included views)? - by El Forum - 07-19-2012, 04:01 AM
How to cache only a part of a view (included views)? - by El Forum - 07-19-2012, 04:05 AM
How to cache only a part of a view (included views)? - by El Forum - 07-19-2012, 06:20 AM
How to cache only a part of a view (included views)? - by El Forum - 07-19-2012, 06:34 AM
How to cache only a part of a view (included views)? - by El Forum - 07-19-2012, 07:54 AM
How to cache only a part of a view (included views)? - by El Forum - 07-19-2012, 11:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB