[dokuwiki] Re: preventing instruction level caching

  • From: Christopher Smith <chris@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 29 Apr 2009 02:46:43 +0100

On 28 Apr 2009, at 22:51, James Lin wrote:

Hi Chris,

so how should I approach this?

eg. I have page A includes B, the outcome I want is when viewing page A, don't cache page B.

Regards

James



Sounds like its not a caching issue but a plugin issue. You have a page you want to behave differently depending on whether its included or not included.

Do you have the most recent include plugin, it merges instructions from the included page into the including page, so it isn't really caching page B, page B has its own separate cache.

Does the include plugin set any sort of indicator so that a renderer can tell if its part of an inclusion or not?


On 28 Apr 2009, at 23:07, James Lin wrote:

Hi again Chris,

from the dokuwiki:
Prevent Caching
To prevent a page from ever being cached, use the NOCACHE tag anywhere in the document. This is useful if the page contains dynamic content, e.g. PHP code that pulls in outside information, where the caching would prevent the most recent information from being displayed.

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I have added ~~NOCACHE~~ tag into the page, but it still caches the pages.

The reason I am saying that because I have put some debug output in the function storeCache($instructions) of cache.php, even the page has ~~NOCACHE~~ tag, the storeCache function is still being called to cache the page.

Please correct me if I am wrong.

Regards

James


That is the wiki user explanation, you need the developer explanation, 
http://www.dokuwiki.org/devel:caching

~~NOCACHE~~ affects the rendering cache. As I mentioned before, conceptually the instructions are a representation of the wiki text, if the wiki text hasn't changed the instructions don't need to change.

- Chris


--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: