Merge pull request #305 from dtibarra/dev

Fix issue with RAM consumption during expiry maintenance
This commit is contained in:
Claude 2015-09-17 09:19:24 +02:00
commit 4f12a111e5

View File

@ -901,6 +901,7 @@ class Pastes extends CI_Model
function cron()
{
$now = now();
$this->db->select('pid,expire');
$this->db->where('toexpire', '1');
$query = $this->db->get('pastes');
foreach ($query->result_array() as $row)