[pmwiki-devel] getting around the cache in PageExists()
Peter & Melodye Bowers
pbowers at pobox.com
Mon Jun 2 04:41:38 CDT 2008
Is there any way around the cache in PageExists()? I am creating some pages
named with timestamps and if the page exists then I append a counter to keep
the files unique (Group.Foo-2008-06-01-18-23-03,
Group.Foo-2008-06-01-18-23-03-001, Group.Foo-2008-06-01-18-23-03-002, etc.)
The problem is that when I check for the existence of the file the first
time (Foo-2008-06-01-18-23-03) it really does not exist and this sets the
cache in PageExists(). Then I create that file (i.e., now it exists) and if
I try to create another one within the same second the cache reports that
the file does not exist without going out and looking.
Do I just need to change my design or something to make this work?
-Peter
More information about the pmwiki-devel
mailing list