From 4b2dfc3a76c6aaff4e9e60e2b57d106eda9b8842 Mon Sep 17 00:00:00 2001
From: Dries <dries@buytaert.net>
Date: Thu, 9 Aug 2012 16:19:23 -0400
Subject: [PATCH] - Patch #1719250 by catch: Fixed DatabaseBackend still
 calling garbageCollection() every request due to minimum cache lifetime.

---
 core/lib/Drupal/Core/Cache/DatabaseBackend.php | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/core/lib/Drupal/Core/Cache/DatabaseBackend.php b/core/lib/Drupal/Core/Cache/DatabaseBackend.php
index 433ff21ac729..e90e2ad76a85 100644
--- a/core/lib/Drupal/Core/Cache/DatabaseBackend.php
+++ b/core/lib/Drupal/Core/Cache/DatabaseBackend.php
@@ -53,9 +53,6 @@ function get($cid) {
    */
   function getMultiple(&$cids) {
     try {
-      // Garbage collection necessary when enforcing a minimum cache lifetime.
-      $this->garbageCollection($this->bin);
-
       // When serving cached pages, the overhead of using db_select() was found
       // to add around 30% overhead to the request. Since $this->bin is a
       // variable, this means the call to db_query() here uses a concatenated
@@ -109,8 +106,7 @@ protected function prepareItem($cache) {
       }
     }
 
-    // If the data is permanent or not subject to a minimum cache lifetime,
-    // unserialize and return the cached data.
+    // Unserialize and return the cached data.
     if ($cache->serialized) {
       $cache->data = unserialize($cache->data);
     }
-- 
GitLab