Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
function cache_set_expire() {
if ($lifespan = $this->options[$type . '_lifespan']) {
return time() + $lifespan;
}
else {
return CACHE_PERMANENT;
}
}
The function expects a $type variable but it's missing here.
Comment | File | Size | Author |
---|---|---|---|
#1 | 964266-cache_set_expire.patch | 456 bytes | dawehner |
Comments
Comment #1
dawehnerHere is a patch
Comment #2
dawehnerThe code comes from #813422: Time based caching shouldn't use CACHE_PERMANENT
Comment #3
pmorel CreditAttribution: pmorel commentedI was going to post exactly the same patch but did remember to search the issue queue before submitting the same issue. The patch is working for me and does make sense
Comment #4
merlinofchaos CreditAttribution: merlinofchaos commentedCommitted to all branches.