diff --git a/lib/plugins/system/htmlparser/htmlparser.js b/lib/plugins/system/htmlparser/htmlparser.js index 1c53a9883..991a780c7 100644 --- a/lib/plugins/system/htmlparser/htmlparser.js +++ b/lib/plugins/system/htmlparser/htmlparser.js @@ -105,7 +105,8 @@ export default { var key = metaUtils.getMetaCacheKey(url, whitelistRecord, options); cache.set(key, cachedData, { - ttl: ttl + ttl: ttl, + refresh: options.refresh }); } diff --git a/lib/plugins/system/meta/meta.js b/lib/plugins/system/meta/meta.js index 4f73703af..9ae6caaf6 100644 --- a/lib/plugins/system/meta/meta.js +++ b/lib/plugins/system/meta/meta.js @@ -50,7 +50,8 @@ export default { _sys_created_at: Math.floor(new Date().getTime() / 1000), _sys_headers: htmlparser.headers }, meta), { - ttl: ttl + ttl: ttl, + refresh: options.refresh }); if (options.refresh) { diff --git a/lib/plugins/system/oembed/oembedUtils.js b/lib/plugins/system/oembed/oembedUtils.js index ab7ba055a..82090d81f 100644 --- a/lib/plugins/system/oembed/oembedUtils.js +++ b/lib/plugins/system/oembed/oembedUtils.js @@ -276,7 +276,8 @@ export function findOembedLinks(uri, meta) { cache.set(oembed_key, data, { // Use proxy.cache_ttl or options.cache_ttl. // If options.cache_ttl === 0 and no proxy.cache_ttl, then CONFIG.CACHE_TTL will be used. - ttl: utils.getMaxCacheTTL(uri, options) + ttl: utils.getMaxCacheTTL(uri, options), + refresh: options.refresh }); } diff --git a/lib/request.js b/lib/request.js index 3ca318cb9..d5f02436e 100644 --- a/lib/request.js +++ b/lib/request.js @@ -131,7 +131,8 @@ export default function(options, iframely_options, callback) { }, data: data }, { - ttl: ttl + ttl: ttl, + refresh: refresh }); // temp cache migration, set new key as well @@ -143,7 +144,8 @@ export default function(options, iframely_options, callback) { }, data: data }, { - ttl: ttl + ttl: ttl, + refresh: refresh }); } } @@ -207,7 +209,8 @@ export default function(options, iframely_options, callback) { if (new_cache_key) { cache.set('req:' + prefix + new_cache_key, data, { - ttl: ttl + ttl: ttl, + refresh: refresh }); }