public function httpErrorLogFlushAction() { $this->checkPermission("http_errors"); $db = Db::get(); $db->query("TRUNCATE TABLE http_error_log"); // much faster then $db->delete() $this->_helper->json(["success" => true]); }