Summary | preferences hooks get called multiple times |
Queue | Horde Base |
Queue Version | 3.1.1 |
Type | Bug |
State | Not A Bug |
Priority | 1. Low |
Owners | |
Requester | dgehl (at) inverse (dot) ca |
Created | 07/12/2006 (7039 days ago) |
Due | |
Updated | 07/12/2006 (7039 days ago) |
Assigned | |
Resolved | 07/12/2006 (7039 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Not A Bug
Priority ⇒ 1. Low
(and subsequently fixed for 3.1.2).
function) the following code
Horde::logMessage("calling " . $pref . " hook for user " .
$this->_user, __FILE__, __LINE__, PEAR_LOG_INFO);
allows to easily follow the number of times the hook is executed
State ⇒ Unconfirmed
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ preferences hooks get called multiple times
Queue ⇒ Horde Base
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';