protected function doSaveDependingOnFiles($id, $data, array $files, $lifeTime = 0)
	{
		$dependencies = [
			NetteCache::TAGS => ['doctrine'],
			NetteCache::FILES => $files
		];
		if ($lifeTime != 0) {
			$dependencies[NetteCache::EXPIRE] = time() + $lifeTime;
		}
		$this->cache->save($id, $data, $dependencies);

		return TRUE;
	}