mirror of
https://github.com/iptv-org/iptv
synced 2025-12-17 10:57:18 -05:00
Added clearCache() function
This commit is contained in:
@@ -186,6 +186,10 @@ function checkCache(url) {
|
||||
return cache.hasOwnProperty(id)
|
||||
}
|
||||
|
||||
function clearCache() {
|
||||
cache = {}
|
||||
}
|
||||
|
||||
function getUrlPath(u) {
|
||||
let parsed = urlParser.parse(u)
|
||||
let searchQuery = parsed.search || ''
|
||||
@@ -204,5 +208,6 @@ module.exports = {
|
||||
createChannel,
|
||||
getBasename,
|
||||
addToCache,
|
||||
checkCache
|
||||
checkCache,
|
||||
clearCache
|
||||
}
|
||||
Reference in New Issue
Block a user