/** * @GET * @POST */ public function clear() { if (false === Runtime::isManagementAccess()) { throw new Http_Exception('cache/resource', null, Http_Exception::FORBIDDEN); } Cache::clear(); clearstatcache(true); }
/** * @param \Components\Debug_Appender $appender_ * * @return \Components\Debug_Appender */ public static function appender($verbosity_ = self::INFO, Debug_Appender $appender_ = null) { if (null !== $appender_) { self::$m_appender[$verbosity_] = $appender_; return $appender_; } if (self::$m_active && self::$m_verbosity >= $verbosity_ && Runtime::isManagementAccess()) { while (self::INFO >= $verbosity_) { if (isset(self::$m_appender[$verbosity_])) { return self::$m_appender[$verbosity_]; } $verbosity_ *= 2; } } if (null === self::$m_appenderNull) { self::$m_appenderNull = new Debug_Appender_Null(); } return self::$m_appenderNull; }