[Pmwiki-users] Problem with SimplePageCache script.

Patrick R. Michaud pmichaud
Mon Sep 22 19:47:06 CDT 2003


I haven't looked at the script until just now, but it seems
to me like the timestamp portion of the script is working a bit harder
than it needs to--I'm not sure what the opendir()/readdir() sequences
are supposed to accomplish.

The problem may have to do with browser caching--since the script isn't
reproducing the header() calls that PmWiki normally generates to
prevent pages from being stored in a browser cache, your browser may
be caching the old non-edited version of the document even though the
wiki cache is being updated on disk.

However, Reimer's script looks pretty straightforward and useful, so I may
update it a bit to add some robustness and then add it to the PmWiki 
distribution so that someone can enable caching of generated pages by 
simply placing $EnableCache=1 in local.php or something like that.

Pm



On Tue, Sep 23, 2003 at 11:19:49AM +1000, Richard Canning wrote:
> 
>    When  I read about SimplePageCache it looked like the pmwiki script of
>    my  dreams.  I have a series of pages that I load a lot, and they have
>    complicated  markup and takes about 6 seconds to generate. I only edit
>    it about once a day, so this looked to be a great solution.
> 
> 
> 
>    I downloaded and installed the script, and my pages sped up a lot.
>    Then  when  I  went  to  edit them, the change was not reflected, so I
>    could not edit the pages.
> 
> 
> 
>    If  I load the pages with '/wiki/wiki.php/Main/Homepage?action=browse'
>    I  see  the  version before the edit(s). If I use '?action=resetcache'
>    then  I  see the current version, but then if I take it back to browse
>    (either  with  or  without  the  action)it  goes  back to the original
>    version.
> 
> 
> 
>    Only  browse  is  effected  by  this; edit, diff, source, etc all work
>    fine.
> 
> 
> 
>    The  only  way  I  have to make the updates visible is to log into the
>    wiki and manually delete the cache file from /wiki.cache
> 
> 
> 
>    Has anyone seen this before with this script, and have any ideas?
> 
> 
> 
>    Server:
>    PHP Version 4.1.2
>    Server API: Apache/1.3.26
> 
> 
> 
>    Thanks
>    Richard Canning

> _______________________________________________
> Pmwiki-users mailing list
> Pmwiki-users at pmichaud.com
> http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com




More information about the pmwiki-users mailing list