OpenOperator Deployer
Deploy source revision ef73a4b421f2d1ececca20f99c9118f4621c5e28
6918275
Raw History Blame Contribute Delete
332 Bytes
import { clear } from "/js/cache.js";
export default async function resetCache(ctx) {
try {
// clear frontend cache areas when backend caches are cleared via API
if (ctx.endpoint == "cache_reset") {
for (const area of ctx.data.areas) {
clear(area);
}
}
} catch (e) {
console.error(e);
}
}