From 904f520a7a81fec87605f6b314dc9eb22077fb71 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Fri, 4 Aug 2017 08:08:04 +0000 Subject: [PATCH] ratelimitfile: do a clean of the expired entries automatically git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3900 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- ratelimitfile.php | 1 + 1 file changed, 1 insertion(+) diff --git a/ratelimitfile.php b/ratelimitfile.php index 290d2c9..6469c29 100644 --- a/ratelimitfile.php +++ b/ratelimitfile.php @@ -55,6 +55,7 @@ class ratelimitfile extends ratelimit file_put_contents ($file, $contents); $lock->unlockRW (); unset ($lock); + $this->clean (); if (count ($contents) > $this->maxEntries) { if ($this->debug) echo "Ratelimiting for '$name'\n";