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:
parent
ad954d01de
commit
581a3c5323
@ -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) {
|
||||
|
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user