[pmwiki-users] (:pagelist order=random:) vs IMSCaching

Patrick R. Michaud pmichaud at pobox.com
Tue Mar 29 12:48:16 CDT 2011


On Mon, Mar 28, 2011 at 12:13:49PM +0200, viki.veeks at gmail.com wrote:
> Hello.
> I'm using pagelists to include random content in the wiki. The
> snippets from the tmpl files are as follows:
> 
> <div class="myclass">
> <!--(:pagelist order=random count=1 fmt=#includeTitle list=normal
> group=mygroup:)-->
> </div>
> 
> One of the `features' of this pagelist is that on each page reload,
> the content that is included via the pagelist is different.
> 
> However, this `feature' and `IMSCaching' don't get along with each
> other. When the following config.php line is uncommented, the
> pagelist-included content doesn't change on reload anymore:
> $EnableIMSCaching = 1;
> 
> Is it possible to have both: caching and true `order=random' behaviour?

Not with IMSCaching, I don't think.  If you want the pages to
change on reload, then (by definition) they can't be cached by the
browser (which is what IMSCaching does -- it enables the use of
cached copies in the browser along with the If-Modified-Since header).

Pm



More information about the pmwiki-users mailing list