fix: cache invalidation restored

This commit is contained in:
Piyush Gupta
2024-11-15 14:07:35 +05:30
parent 9e038e326a
commit d2cd155518

View File

@@ -7,7 +7,7 @@ import { HttpsProxyAgent } from "https-proxy-agent";
import fetch from "node-fetch";
import { cache as reactCache } from "react";
import { prisma } from "@formbricks/database";
import { cache } from "@formbricks/lib/cache";
import { cache, revalidateTag } from "@formbricks/lib/cache";
import {
E2E_TESTING,
ENTERPRISE_LICENSE_KEY,
@@ -48,7 +48,7 @@ const setPreviousResult = async (previousResult: {
lastChecked: Date;
features: TEnterpriseLicenseFeatures | null;
}) => {
// revalidateTag(PREVIOUS_RESULTS_CACHE_TAG_KEY);
revalidateTag(PREVIOUS_RESULTS_CACHE_TAG_KEY);
const { lastChecked, active, features } = previousResult;
await cache(