public function query_cache_path($key = '') { $base = $this->base_path() . DIRECTORY_SEPARATOR . 'query_cache'; if (!IO_FS::exists($base)) { IO_FS::make_nested_dir($base); } return $base . ($key ? DIRECTORY_SEPARATOR . $key : ''); }