From: Bert Hubert Date: Fri, 10 Mar 2006 13:05:40 +0000 (+0000) Subject: only prune cache once every 5 minutes, not every minute X-Git-Tag: pdns-2.9.20~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29f0b1ce12fc1102606334409d11bbd3698c32bc;p=thirdparty%2Fpdns.git only prune cache once every 5 minutes, not every minute we neglected to add the 'bootstrapping' script to the tarball, thanks to Stefan Arentz for noticing git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@574 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/Makefile.am b/Makefile.am index 9b3641240a..8e4e96b319 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,7 @@ SUBDIRS=modules codedocs @programdescend@ EXTRA_DIST=TODO README HACKING INSTALL ChangeLog debian-pdns pdns.spec \ -codedocs/Makefile codedocs/doxygen.conf contrib/powerdns.solaris.init.d +codedocs/Makefile codedocs/doxygen.conf contrib/powerdns.solaris.init.d \ +bootstrap man8_MANS=pdns/docs/pdns_control.8 pdns/docs/pdns_server.8 pdns/docs/zone2sql.8 diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 56360cb838..03ff924d7b 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -516,11 +516,11 @@ void doStats(void) statsWanted=false; } -void houseKeeping(void *) +static void houseKeeping(void *) { static time_t last_stat, last_rootupdate, last_prune; time_t now=time(0); - if(now - last_prune > 60) { + if(now - last_prune > 300) { RC.doPrune(); int pruned=0; for(SyncRes::negcache_t::iterator i = SyncRes::s_negcache.begin(); i != SyncRes::s_negcache.end();)