[pmwiki-users] cache

Patrick R. Michaud pmichaud at pobox.com
Wed Aug 9 17:24:54 CDT 2006


On Wed, Aug 09, 2006 at 03:29:29PM -0500, JB wrote:
> I came accross the variable "$EnableIMSCaching".
> If I get this right it is a nice feature which can 
> save some bandwidth because it allows the browser 
> to cache files. 

Yes.

> How about the server itself?  Could you create a 
> variable to cache the HTML on the server too?  
> That would save the server from using as much 
> CPU and disk access, and make response time faster.

Caching on the server side is available in PmWiki,
but is very limited in what can be done.  In particular,
the page contents cannot be reliably cached for pages
containing any of the following markups:

   - (:include:) of read-protected pages
   - (:pagelist:)
   - (:if auth ...:)
   - (:if authid:)
   - (:if date ...:)
   - {$Author} or {$AuthId}
   - (:keywords:)
   - (:description:)
   - (:title:)
   - $[phrase substitutions]
   - markups that modify $HTMLStylesFmt or $HTMLHeaderFmt

There may be other situations where caching doesn't
work that I'm not aware of.  Essentially, it's hard
to cache any page where the page contents depend on 
the identity of the visitor, the time of day, 
special HTTP headers, or special HTML tags in the 
<head> section of a document.

Pm




More information about the pmwiki-users mailing list