[dev] [cvs] commit: mnemo/lib base.php

Jan Schneider jan at horde.org
Thu Jun 29 01:54:59 PDT 2006


Zitat von Michael M Slusarz <slusarz at horde.org>:

> slusarz     2006-06-29 00:29:20 PDT
>
>   Modified files:
>     lib                  base.php
>   Log:
>   Save completely unnecessary preference update, if possible (would   
> cause a DB
>   write on every IMP page load, for example, even though no data had  
>  changed).
>
>   Revision  Changes    Path
>   1.53      +7 -2      mnemo/lib/base.php

No, setValue() only sets the dirty flag if the value is different from  
the old value, and only then the preference is written to the  
database. See Prefs.php line 280.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the dev mailing list