[dokuwiki] Re: How does the caching work?
- From: Christopher Smith <chris@xxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Fri, 19 Feb 2010 18:05:48 +0000
On 19 Feb 2010, at 17:15, Chris Tapp wrote:
> I've recently started working on developing some plugins for DokuWiki and
> would like to understand how the page caching works.
>
> 1) It seems to me as if instructions and rendered output could both be
> cached. Is this the case, or is it just the rendered output that's cached?
see 2
>
> 2) Is there any documentation that would help me to understand how to build
> up a cache dependency list for a page? I'm working on an include-type plugin
> and this information needs to be captured so that the page is refreshed if an
> included page is modified.
http://www.dokuwiki.org/devel:caching
>
> 3) Can ACL information be added to the cache so that a page refresh can be
> forced if the ACLs for the current user are less than those stored in the
> cache information? This would make it very easy to ensure that included
> content would honour its ACLs and not just be controlled by those of the
> including page.
Yes, make use of http://www.dokuwiki.org/devel:event:parser_cache_use
Change the cache name to something that is dependent on the access level.
You'll then be caching copies of the page for different access levels.
>
> Thanks for any help you can give.
>
> PS I hope this post is appropriate for this list. If not, please let me know
> and I'll try and find a more appropriate one ;-)
>
List is appropriate place, searching the wiki first and asking questions after
reading that information would be more appropriate. Your points (1) and (2)
are quickly answered by searching dokuwiki.org (cache) or google (dokuwiki +
cache).
- Chris
Other related posts: