-
- 654 Posts
Hi,
I am trying to use NewsPublisher to create a new document that has a Jot call in it’s template. Because Phx is also enabled, I’d like to figure out how to set the cacheable flag on this document to be "uncached." The default for the entire site is cacheable and I don’t want to change that.
Can anyone tell me how to set this flag on a document that is created "on the fly?" Also, I am using this snippet in release 1.0.0. I know that NewsPublisher was not included because it wasn’t handling template variables (or something like that). However, it seems to suit my simple purpose. If anyone can point out other problems with using this, I’d appreciate feedback.
Thanks in advance,
Matt
-
- 2,877 Posts
- Try turn it off for the parent/container and see if the new docs inherit the setting!
If that doesn’t do it, it’s either adding code for ’
cacheable’ into the snippet
or write a plugin that exclude the docs from being cacheable...
-------------------------------------------------------------------------
There is
&clearcache - when set to 1 the system will automatically clear the site cache after publishing an article.
-
- 2,877 Posts
That is a perfect solution!