Prevent caching of a specific block
Hello,
I was wondering if it's possible to exclude part of a template from being cached.
For example I would like to display information related to user's geographical location so it need to be different for every user even if they are not logged-in.
Is there some Dwoo annotation I can surround the code with for it to be run each time the page is rendered?
Or maybe create a FUEL block and prevent caching just for this block?
Any other thoughts?
Thanks!
Comments
Another option is to use AJAX to pull in content.
Although you can cache Dwoo templates as well, it is turned off by default. What you see in the cache/dwoo/compiled folder is the compiled templates which have compiled executable PHP code in them.
But it's a shame to disable caching on each page since the content of those pages is very cachable.
I'm gonna look into the ajax solution then.
Thanks!