is_expired ()

Checks whether the cache object is expired or not.

Access

public

Returns

Type

Description

boolean

Whether the cache is expired or not.

Source

Method defined in lib/cachecore/cachepdo.class.php | Toggle source view (9 lines) | View on GitHub

public function is_expired()
{
    if ($this->timestamp() + $this->expires < time())
    {
        return true;
    }

    return false;
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback