Mecha CMS

Cache::stale()

Check if cache file already expired.

2.3.0 Static

Cache::stale(string $id, int $for = 86400);
Cache::stale(string $id, string $for = '1 day');

Example:

if (Cache::stale('foo', '1 year')) {
    // Expired!
}