From 2fe4636fa44ad48b801d0e38b892c0e47998327d Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 8 Jan 2007 18:42:13 +0000 Subject: Add repeating timers, and make an hourly prune of the dns cache, otherwise a cache entry might not be cleared until a user with that ip comes back! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6264 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/dns.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/dns.h') diff --git a/include/dns.h b/include/dns.h index 8011d069c..562a49322 100644 --- a/include/dns.h +++ b/include/dns.h @@ -326,6 +326,8 @@ class DNS : public EventHandler */ dnscache* cache; + class CacheTimer* PruneTimer; + /** * Build a dns packet payload */ @@ -450,6 +452,7 @@ class DNS : public EventHandler void DelCache(const std::string &source); int ClearCache(); + int PruneCache(); }; #endif -- cgit v1.2.3