/** * Clears the internal query cache * * @param string $sql */ public function clear_cache($sql = NULL) { if (empty($sql)) { self::$query_cache = array(); } else { unset(self::$query_cache[$this->query_hash($sql)]); } Eight::log('debug', 'Database cache cleared: ' . get_class($this)); }