htmlcache
htmlcache copied to clipboard
Some more FAQs for you...
Does this plugin work with forms that use getCsrfInput()? Because getCsrfInput() will need to be generated each page load
Can we exclude areas, perhaps based on segments? I have a members area which I don't need or want cached.
Can we exclude sections of the page? For example if we had a template include that generates something random, we would want to exclude it.
Thanks
Hi @amityweb ,
Currently this is not possible but we are planning to release soon this functionality.
Keep tuned!
I would love that, too!
I recently implemented an exclude feature. It's a new table field in the settings where you can add URL paths to be ignored from cache. See pull request #17 for details.
You can only exclude whole pages from being cached, though. So, with my changes you can't ignore single segments of a page, as you wished. But hey, it's something. :)
By the way, with my changes I also enabled you to use regular expressions to exclude a whole bunch of pages (instead of adding every single one).
Thus, you can exclude following pages from being cached, for instance:
- path/to/page/with/contact-form
- your/channel/with/many/sub-pages/.*
Just see the instructions and info texts of the new field in the plugin settings.
…And no need to worry: I also had multi-sites in mind.
Are there still plans to exclude areas of code - specifically would like to exclude FreeForm forms when my user leverages form builder