expire crashing on shared hosting from memory exhaustion. Lower the expire limit. Also the sys channel was being expired with everybody else due to a flag change regression.

This commit is contained in:
redmatrix 2016-07-06 22:02:06 -07:00
parent ad954d01de
commit 581a3c5323
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ class Expire {
logger('site_expire: ' . $site_expire);
$r = q("SELECT channel_id, channel_address, channel_pageflags, channel_expire_days from channel where true");
$r = q("SELECT channel_id, channel_system, channel_address, channel_expire_days from channel where true");
if ($r) {
foreach ($r as $rr) {

View File

@ -3282,7 +3282,7 @@ function item_expire($uid,$days) {
$expire_limit = get_config('system','expire_limit');
if(! intval($expire_limit))
$expire_limit = 5000;
$expire_limit = 2500;
$item_normal = item_normal();