Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bin/maintenance.php
diff options
context:
space:
mode:
authorrwalsh@mozilla.com <rwalsh@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2009-08-21 01:04:47 (GMT)
committer rwalsh@mozilla.com <rwalsh@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2009-08-21 01:04:47 (GMT)
commit98e0a238b938de6a85e4110fc9ca42c123e054ae (patch)
treea956348cd1f6b5b80723b0a68ad4deb9a3890838 /bin/maintenance.php
parent19bf61ebd6eb60e438054da0b8e940b5938595d2 (diff)
Bug 498679: Running validation tests on upload!
git-svn-id: http://svn.mozilla.org/addons/trunk@49665 4eb1ac78-321c-0410-a911-ec516a8615a5
Diffstat (limited to 'bin/maintenance.php')
-rwxr-xr-xbin/maintenance.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/maintenance.php b/bin/maintenance.php
index 3943889..63f82c6 100755
--- a/bin/maintenance.php
+++ b/bin/maintenance.php
@@ -289,6 +289,16 @@ switch ($action) {
$db->write($sharing_sql);
$affected_rows += mysql_affected_rows($db->write);
+ echo 'Cleaning up test results cache...'."\n";
+ $results_sql = "
+ DELETE FROM
+ `test_results_cache`
+ WHERE
+ date < DATE_SUB(CURDATE(), INTERVAL 1 HOUR)
+ ";
+ $db->write($sharing_sql);
+ $affected_rows += mysql_affected_rows($db->write);
+
break;