Issue Bug Closed

#21690[Caching framework] API usage: Make sure lifetime is NULL or integer

Christian Kuhn 08/08/10, 13:52 updated 10/02/18, 12:24

Description

The following patch will be committed in 72 hours if nobody objects:

Type: Bug

Branches: trunk, 4.4, 4.3

BT:

Problem:
The set() API of cache frontends expects lifetime to be either NULL or an integer. This is not always the case in core: If the lifetime comes from TS settings its type is string.

Solution:
Use intval() lifetimes.

(issue imported from #M15393)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.