[dev] [Nic] Added feature: purge old records

Jan Schneider jan at horde.org
Fri Oct 29 08:46:34 PDT 2004


Zitat von Roel Gloudemans <roel at gloudemans.info>:

> I use Nic to monitor some sites and systems. After a while the Nic tables get
> really big. For me information older than a week isn't relevant anymore, so I
> wrote a script that frees up some space in the database which Nic can fill
> again. I run the script one a week to purge old status records.
>
> This might be usefull to other people a well; so patches and script attached.

Nice, this annoyed me too, but never enough to implement purging. A few
suggestions though: The time to keep old records should be a configuration
setting, and the purging should be integrated into statusMonitor.php. Not
that it should be run each time the status gets updated, but with some
clever interval depending on the purge days.

Jan.

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


More information about the dev mailing list