Commit aba98c73 authored by catch's avatar catch

Issue #2186557 by andypost: DatabaseBackend::garbageCollection() should use injected database.

parent 8fe0fd00
......@@ -8,7 +8,6 @@
namespace Drupal\Core\Cache;
use Drupal\Core\Database\Connection;
use Drupal\Core\Database\Database;
use Drupal\Core\Database\SchemaObjectExistsException;
/**
......@@ -311,7 +310,7 @@ public function invalidateAll() {
*/
public function garbageCollection() {
try {
Database::getConnection()->delete($this->bin)
$this->connection->delete($this->bin)
->condition('expire', Cache::PERMANENT, '<>')
->condition('expire', REQUEST_TIME, '<')
->execute();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment