From 8829eb52f03b95a988cd35afe259d3a74f0b18cd Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 23 Feb 2017 14:27:51 +0100 Subject: [inc/property] Add list-of-values interface This can be used to store multiple items per key and avoids the race conditions that manually (de)serializing a list and then using get()/set() would cause. --- apis/cron.inc.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apis') diff --git a/apis/cron.inc.php b/apis/cron.inc.php index 8068eb2e..470c70e6 100644 --- a/apis/cron.inc.php +++ b/apis/cron.inc.php @@ -26,6 +26,9 @@ foreach (glob('modules/*/hooks/cron.inc.php') as $file) { } switch (mt_rand(1, 10)) { +case 2: + Database::exec("DELETE FROM property_list WHERE dateline <> 0 AND dateline < UNIX_TIMESTAMP()"); + break; case 3: Database::exec("DELETE FROM property WHERE dateline <> 0 AND dateline < UNIX_TIMESTAMP()"); break; -- cgit v1.2.3-55-g7522