[Tickets #4148] NEW: preferences hooks get called multiple times

bugs@bugs.horde.org bugs at bugs.horde.org
Wed Jul 12 06:49:34 PDT 2006


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=4148
-----------------------------------------------------------------------
 Ticket             | 4148
 Created By         | dgehl at inverse.ca
 Summary            | preferences hooks get called multiple times
 Queue              | Horde Base
 Version            | 3.1.1
 State              | Unconfirmed
 Priority           | 3. High
 Type               | Bug
 Owners             | 
-----------------------------------------------------------------------


dgehl at inverse.ca (2006-07-12 06:49) wrote:

I defined the '_prefs_hook_fullname' function in config/hooks.php and
according to config/hooks.php.dist,

Preferences hooks are ONLY executed on login. Preferences are
 * cached during a users session and, to avoid unnecessary overhead every
time
 * a preference is accessed, the results of hooks are cached as well.

Unfortunately, I noticed that for any given user, the
'_prefs_hook_fullname' function gets executed several times (approx. once
per second) !

I have in config/prefs.php

$_prefs['fullname'] = array(
    'hook' => true,
    'value' => '',
    'locked' => true,
    'shared' => true,
    'type' => 'text',
    'desc' => _("Your full name:")
);


and in confi/conf.php

$conf['prefs']['params']['driverconfig'] = 'horde';
$conf['prefs']['driver'] = 'sql';





More information about the bugs mailing list