Bug #33562

FileBackend didnt use defaultLifetime if lifetime is null

Added by Mike Franke over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Should have
Category:
Cache
Start date:
2012-01-31
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

FileBackend.php#L191

$expiryTime = ($lifetime === NULL) ? 0 : (time() + $lifetime);

should be

$lifetime = ($lifetime === NULL) ? $this->defaultLifetime : $lifetime;
$expiryTime = ($lifetime === 0) ? 0 : (time() + $lifetime);

Related issues

Related to TYPO3 Core - Feature #39430: Update cache framework to latest FLOW3 versionClosed2014-04-17

Actions
#1

Updated by Karsten Dambekalns over 9 years ago

  • Status changed from New to Accepted
  • Assignee set to Karsten Dambekalns
#2

Updated by Karsten Dambekalns over 9 years ago

  • Target version set to 1.0.3
#3

Updated by Gerrit Code Review over 9 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/8786

#4

Updated by Gerrit Code Review over 9 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/8786

#5

Updated by Gerrit Code Review over 9 years ago

Patch set 1 for branch FLOW3-1.0 has been pushed to the review server.
It is available at http://review.typo3.org/9037

#6

Updated by Karsten Dambekalns over 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF