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

Jan Schneider jan at horde.org
Fri Jan 25 08:40:59 UTC 2013


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?
-- 
Jan Schneider
The Horde Project
http://www.horde.org/



More information about the dev mailing list