in app/classes/Cache/Cache.php [64:85]
public static function getKey(string $id, int $ttl = 0): mixed
{
// By default, we cache data that is mutable over time and has an expiry date
$immutable = false;
if (! self::isActivated()) {
return false;
}
if ($ttl === 0) {
$ttl = defined('CACHE_TIME') ? CACHE_TIME : self::$CACHE_TIME;
}
// External immutable data, we keep this data almost forever (30 years here)
if ($ttl === -1) {
$immutable = true;
}
return self::isValidKey($id, $ttl)
? unserialize(file_get_contents(self::getKeyPath($id, $immutable)))
: false;
}