Subject: Developers of Sympa
List archive
Re: [sympa-dev] Bug: Reloading a list (Sympa-2.6.1) ??
- From: Olivier Salaun - CRU <address@concealed>
- To: address@concealed
- Subject: Re: [sympa-dev] Bug: Reloading a list (Sympa-2.6.1) ??
- Date: Wed, 17 May 2000 17:38:49 +0200
Matthieu Brunet wrote :
> In &List::new, rather than
> [...]
> }
> return undef unless ($liste->load($name));
> [...]
> it seems to be, that one should have
> [...]
> return undef unless ($liste->load($name));
> }
> [...]
> otherwise, you re-load a list already loaded in the hash array (making
> the hash useless). Thus, an unefficiency.
List::load() loads the config file only if it hasn't been done or
if it has changed on disk.
It also updates subscribers if "user_data_source" is "file" or "include".
That's why List::new() calls it anyhow.
It's quite efficient this way.
--
Olivier Salaun
Comite Reseaux des Universites
-
[sympa-dev] Bug: Reloading a list (Sympa-2.6.1) ??,
Matthieu Brunet, 05/17/2000
- Re: [sympa-dev] Bug: Reloading a list (Sympa-2.6.1) ??, Olivier Salaun - CRU, 05/17/2000
Archive powered by MHonArc 2.6.19+.