[dev] How do I force clearing the permissions cache for unauthenticated console users?

Ralf Lang lang at b1-systems.de
Fri Jan 25 08:45:08 UTC 2013


Am 25.01.2013 09:40, schrieb Jan Schneider:
> 
> Zitat von Ralf Lang <lang at b1-systems.de>:
> 
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> I'm writing a console script for importing/exporting horde groups and
>> permission setups from/to yaml.
>>
>> I notice that the console cli user does not get updates when a file
>> cache backend is configured. The Sql cache backend seems to do no harm.
>>
>> How can I trick the cli into not using the cache ?
>>
>> I am running as
>>
>> Horde_Registry::appInit('horde', array(
>>     'cli' => true,
>>     'user_admin' => true,
>>     'test' => true
>> ));
>>
>> Of course I could copy the Horde_Core_Factory_Perms::create code but
>> it seems like the wrong approach.
> 
> Sounds like a (file) permission problem? Did you run the script as the
> web server user?

I ran the script both as web server user and root and the result was
consistent, so I doubt it's a permissions problem but I will check that.
Deleting the cache files DID yield the expected results.


More information about the dev mailing list