ElggFileCache::__construct PHP Méthode

__construct() public méthode

Set the Elgg cache.
public __construct ( string $cache_path, integer $max_age, integer $max_size )
$cache_path string The cache path.
$max_age integer Maximum age in seconds, 0 if no limit.
$max_size integer Maximum size of cache in seconds, 0 if no limit.
    public function __construct($cache_path, $max_age = 0, $max_size = 0)
    {
        $this->setVariable("cache_path", $cache_path);
        $this->setVariable("max_age", $max_age);
        $this->setVariable("max_size", $max_size);
        if ($cache_path == "") {
            throw new \ConfigurationException("Cache path set to nothing!");
        }
    }