Skip to content

Commit c09f3c6

Browse files
committed
Revert "Use sub query instead of ids array."
This reverts commit 07c5b2f.
1 parent 3820629 commit c09f3c6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Model/Table/RequestsTable.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,11 @@ public function gc()
101101
}
102102
$noPurge = $this->find()
103103
->select(['id'])
104+
->enableHydration(false)
104105
->order(['requested_at' => 'desc'])
105-
->limit(Configure::read('DebugKit.requestCount') ?: 20);
106+
->limit(Configure::read('DebugKit.requestCount') ?: 20)
107+
->extract('id')
108+
->toArray();
106109

107110
$query = $this->Panels->query()
108111
->delete()

0 commit comments

Comments
 (0)