[TYPO3-dev] 4.7 cache.lifetime=X returns exception with Redis cache

Christian Kuhn lolli at schwarzbu.ch
Thu Nov 28 11:24:19 CET 2013


Hey,

On 11/27/2013 06:42 PM, Jan Slusarczyk wrote:
> Oops, an error occurred!
> The specified lifetime is of type "string" but a string or NULL is
> expected.
>
> I've checked the source code of
> class.t3lib_cache_backend_redisbackend.php and lifetime is being checked
> for integer rather than a string:
>
> So the value was failing the integer check. I've nailed the problem to a
> specific TyposScript object:
>
> lib.forumNews = TEXT
> lib.forumNews {
>       cache.key = bb7_forumnews
>      cache.lifetime = 60


Good catch. This is probably a bug in the cache TS function 
implementation: It should feed integer lifetime values to cache methods.

Regards
Christian



More information about the TYPO3-dev mailing list