From 3eebf2a3532daf89327a095b8b1dd4ad79ab6d18 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Thu, 7 Jan 2016 20:24:59 +0100 Subject: [PATCH] Don't store the notice object for distrib queue handler, just id --- classes/Notice.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/classes/Notice.php b/classes/Notice.php index f85e9ea233..b4e68c66c6 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -2403,8 +2403,11 @@ class Notice extends Managed_DataObject // If there's a failure, we want to _force_ // distribution at this point. try { + $json = json_encode((object)array('id' => $this->getID(), + 'type' => 'Notice', + )); $qm = QueueManager::get(); - $qm->enqueue($this, 'distrib'); + $qm->enqueue($json, 'distrib'); } catch (Exception $e) { // If the exception isn't transient, this // may throw more exceptions as DQH does -- 2.39.2