htmlcache icon indicating copy to clipboard operation
htmlcache copied to clipboard

Some more FAQs for you...

Open amityweb opened this issue 6 years ago • 4 comments

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

amityweb avatar Jan 25 '19 14:01 amityweb

Hi @amityweb ,

Currently this is not possible but we are planning to release soon this functionality.

Keep tuned!

boldenamsterdam avatar Jan 25 '19 15:01 boldenamsterdam

I would love that, too!

luke-nehemedia avatar Mar 02 '19 00:03 luke-nehemedia

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.

dueddel avatar Apr 17 '19 13:04 dueddel

Are there still plans to exclude areas of code - specifically would like to exclude FreeForm forms when my user leverages form builder

ambidustrious avatar Oct 10 '19 17:10 ambidustrious