We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 60667b9 + bc63e72 commit 0ea3e4bCopy full SHA for 0ea3e4b
Cm/Cache/Backend/Redis.php
@@ -493,6 +493,25 @@ public function test($id)
493
return ($mtime ? $mtime : FALSE);
494
}
495
496
+ /**
497
+ * Get the life time
498
+ *
499
+ * if $specificLifetime is not false, the given specific life time is used
500
+ * else, the global lifetime is used
501
502
+ * @param int $specificLifetime
503
+ * @return int Cache life time
504
+ */
505
+ public function getLifetime($specificLifetime)
506
+ {
507
+ // Lifetimes set via Layout XMLs get parsed as string so bool(false) becomes string("false")
508
+ if ($specificLifetime === 'false') {
509
+ $specificLifetime = false;
510
+ }
511
+
512
+ return parent::getLifetime($specificLifetime);
513
514
515
/**
516
* Save some string datas into a cache record
517
*
0 commit comments