We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91d949e commit bc63e72Copy full SHA for bc63e72
Cm/Cache/Backend/Redis.php
@@ -477,6 +477,25 @@ public function test($id)
477
return ($mtime ? $mtime : FALSE);
478
}
479
480
+ /**
481
+ * Get the life time
482
+ *
483
+ * if $specificLifetime is not false, the given specific life time is used
484
+ * else, the global lifetime is used
485
486
+ * @param int $specificLifetime
487
+ * @return int Cache life time
488
+ */
489
+ public function getLifetime($specificLifetime)
490
+ {
491
+ // Lifetimes set via Layout XMLs get parsed as string so bool(false) becomes string("false")
492
+ if ($specificLifetime === 'false') {
493
+ $specificLifetime = false;
494
+ }
495
+
496
+ return parent::getLifetime($specificLifetime);
497
498
499
/**
500
* Save some string datas into a cache record
501
*
0 commit comments