Helper for cache related utilities (#6696)

Co-authored-by: Tom Moor <tom@getoutline.com>
This commit is contained in:
Apoorv Mishra
2024-03-22 05:19:38 +05:30
committed by GitHub
parent 3b7010337c
commit bd2b32f9d5
5 changed files with 97 additions and 60 deletions

View File

@@ -1,3 +1,4 @@
import { Day } from "@shared/utils/time";
import {
PluginManager,
PluginPriority,
@@ -12,7 +13,7 @@ if (enabled) {
PluginManager.add([
{
type: Hook.UnfurlProvider,
value: Iframely.get,
value: { unfurl: Iframely.unfurl, cacheExpiry: Day },
// Make sure this is last in the stack to be evaluated after all other unfurl providers
priority: PluginPriority.VeryLow,