Commit 4b2dfc3a authored by Dries's avatar Dries
Browse files

- Patch #1719250 by catch: Fixed DatabaseBackend still calling...

- Patch #1719250 by catch: Fixed DatabaseBackend still calling garbageCollection() every request due to minimum cache lifetime.
parent 9a0367fa
......@@ -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);
}
......
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