Documentation correction
Permalink
The documentation for the $expire parameter for Cache::set() is incorrect. The parameter default of "false" tells it to use the default expiration time for full page caching, set under Dashboard > System & Settings > Cache & Speed Settings.
To set a cache entry that doesn't expire, regardless of the full page caching expiration settings, pass "null" instead. Documentation from the Zend library:
To set a cache entry that doesn't expire, regardless of the full page caching expiration settings, pass "null" instead. Documentation from the Zend library:
@param int $specificLifetime If != false, set a specific lifetime for this cache record (null => infinite lifetime)