[pmwiki-devel] Advice needed for CondAuth and cookbook sequencing

DaveG pmwiki at solidgone.com
Mon Mar 8 18:12:38 CST 2010



On 3/2/2010 4:19 AM, Peter Bowers wrote:
> On Tue, Mar 2, 2010 at 9:11 AM, Peter Bowers<pbowers at pobox.com>  wrote:
>>
>> I *believe* (completely untested) that this change would allow a global
>> $EnableAuthCache which could be turned off during config.php as needed...
>>
>
> I forgot at least one other change -- the call to PCache() further
> down in the same function would need to be surrounded with ...
>
> if ($EnableAuthCache)
>     PCache(...);
I tested Peters code using the original conditions, and it seems like a 
good fix for cases where you need to temporarily disable the $acache, 
and then re-enable it.

I'll create a PITS entry for a 'disable cache' mechanism and include 
this code snippet.

Thanks Peter.

  ~ ~ Dave



More information about the pmwiki-devel mailing list