Skip to content

Fix TTL setting in cache() function.

As long as a default TTL is set (which is always set in pluginCacheService), it is impossible to set no TTL on any key with the cache() function.

When you pass 0, you get the default, when you pass -1 you also use setex, which fails.

Suggested solution: get rid of default TTL, and require everyone who wants one to set it explicitly.