Cache::stale()
Check if cache file already expired.
Cache::stale(string $id, int $for = 86400);
Cache::stale(string $id, string $for = '1 day');
Example:
if (Cache::stale('foo', '1 year')) {
// Expired!
}
Cache::stale()
Check if cache file already expired.
Cache::stale(string $id, int $for = 86400);
Cache::stale(string $id, string $for = '1 day');
Example:
if (Cache::stale('foo', '1 year')) {
// Expired!
}