Skip to content
Permalink
Browse files

enabled auto-archiving of disabled event caches, update #386

  • Loading branch information...
following5 committed May 24, 2015
1 parent 89d4645 commit df2ccd2448b3414680e24f7cdd13354f187d7e7e
Showing with 1 addition and 1 deletion.
  1. +1 −1 htdocs/util2/cron/modules/autoarchive_caches.class.php
@@ -44,7 +44,7 @@ function archive_disabled_caches()
// modification date.
$rs = sql("SELECT `caches`.`cache_id`
FROM `caches`
WHERE `caches`.`status`=2 AND `caches`.`type`<>6
WHERE `caches`.`status`=2
AND IFNULL((SELECT MAX(`date_modified`) FROM `cache_status_modified` `csm` WHERE `csm`.`cache_id`=`caches`.`cache_id`),`caches`.`listing_last_modified`) < NOW() - INTERVAL 366 DAY
GROUP BY `caches`.`cache_id`
ORDER BY `caches`.`listing_last_modified`

0 comments on commit df2ccd2

Please sign in to comment.
You can’t perform that action at this time.