Issue Bug Closed

#105003Invalid timestamp calculated by CacheTimeout middleware

Andreas Kienast 09/17/24, 12:26 updated 10/15/24, 09:05

Description

If the TypoScript configuration config.cache_clearAtMidnight is enabled, the CacheTimeout middleware may result in the following error:

(1/1) TypeError
date(): Argument #2 ($timestamp) must be of type ?int, float given

CDC->resolveLifetime() may return a lifetime that equals PHP_INT_MAX. The middleware adds EXEC_TIME, leading to an overflow where PHP converts the result of the operation to a float.

Reviews 1