summaryrefslogtreecommitdiffstats
path: root/apis
diff options
context:
space:
mode:
authorSimon Rettberg2017-02-23 14:27:51 +0100
committerSimon Rettberg2017-02-23 14:27:51 +0100
commit8829eb52f03b95a988cd35afe259d3a74f0b18cd (patch)
treede491056a354bc3de4e2719e9bb6e521b3e28371 /apis
parent[roomplanner] Make hiding of rooms in api more clever (diff)
downloadslx-admin-8829eb52f03b95a988cd35afe259d3a74f0b18cd.tar.gz
slx-admin-8829eb52f03b95a988cd35afe259d3a74f0b18cd.tar.xz
slx-admin-8829eb52f03b95a988cd35afe259d3a74f0b18cd.zip
[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.
Diffstat (limited to 'apis')
-rw-r--r--apis/cron.inc.php3
1 files changed, 3 insertions, 0 deletions
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;