Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/plugins/system/htmlparser/htmlparser.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ export default {
var key = metaUtils.getMetaCacheKey(url, whitelistRecord, options);

cache.set(key, cachedData, {
ttl: ttl
ttl: ttl,
refresh: options.refresh
});
}

Expand Down
3 changes: 2 additions & 1 deletion lib/plugins/system/meta/meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 2 additions & 1 deletion lib/plugins/system/oembed/oembedUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
}

Expand Down
9 changes: 6 additions & 3 deletions lib/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -143,7 +144,8 @@ export default function(options, iframely_options, callback) {
},
data: data
}, {
ttl: ttl
ttl: ttl,
refresh: refresh
});
}
}
Expand Down Expand Up @@ -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
});
}

Expand Down
Loading