ElggHMACCache::__destruct PHP Method

__destruct() public method

Clean out old stuff.
public __destruct ( )
    public function __destruct()
    {
        $dbprefix = elgg_get_config('dbprefix');
        $time = time();
        $age = (int) $this->getVariable("max_age");
        $expires = $time - $age;
        delete_data("DELETE from {$dbprefix}hmac_cache where ts<{$expires}");
    }