public final function setCacheEnabled($cached = true) { $cached = (bool) $cached; $this->use_caching = $cached; $this->clearCache(); }