Do not cache widget?
-
Hello –
I’m using Quick Cache Pro and realize it’s possible to disable cacheing on particular pages, by specifying define(‘QUICK_CACHE_ALLOWED’, FALSE). Is it possible to cache a page but disable caching on a widget within the page? I’d rather not use iFrame.
Thanks
-
Hello,
What you’re referring to is called “dynamic fragmentation”, where only specific parts of a page get cached while other parts remain dynamic. This feature is not currently available in Quick Cache, however we have a feature request open for that here. Please follow that GitHub issue for updates.
Thanks Raam, will do. I ended up using iFrame as a workaround for now.
Please, I kindly ask if you can help me with the code you used in the iFrame.
I had the same idea for Recent Comments and Posts, but I don’t know what should I add there.Please, drop me a line here if you are not allowed get offtopic on this thread. even from a facebook account.
Thank you 😉
Hi Alergic –
Basically I just used iFrame to a page that is not being cached. In order to not cache the page being called, I specified:
define(‘QUICK_CACHE_ALLOWED’, FALSE);
within that page.Next, I have a simple text widget with an iFrame calling that page:
<iframe src=”<source to page>” width=”200px” height=”1600px” scroll=”no”></iframe>Sorry, I had to boldface the code up above because for some reason the Code Backticks doesn’t seem to be working for me on this forum.
I hope this helps 🙂
The topic ‘Do not cache widget?’ is closed to new replies.