add cache for website id

This commit is contained in:
formica2 2021-03-24 14:48:20 +03:00
parent f8ac987bfc
commit 2f6e7786c6
3 changed files with 38 additions and 4 deletions

View file

@ -142,3 +142,5 @@ export const BROWSERS = {
'ios-webview': 'iOS (webview)',
searchbot: 'Searchbot',
};
export const WEBSITE_ID_CACHE_TIME = 24 * 60 * 60 * 1000; // time to cache website ids(ms)