mirror of
https://github.com/iptv-org/iptv
synced 2026-10-25 20:38:55 -04:00
Added clearCache() function
This commit is contained in:
1 parent
171fa74235
commit
9f7c009081
1 file changed
+6
-1
+6
-1
@@ -186,6 +186,10 @@ function checkCache(url) {
|
|||||||
return cache.hasOwnProperty(id)
|
return cache.hasOwnProperty(id)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function clearCache() {
|
||||||
|
cache = {}
|
||||||
|
}
|
||||||
|
|
||||||
function getUrlPath(u) {
|
function getUrlPath(u) {
|
||||||
let parsed = urlParser.parse(u)
|
let parsed = urlParser.parse(u)
|
||||||
let searchQuery = parsed.search || ''
|
let searchQuery = parsed.search || ''
|
||||||
@@ -204,5 +208,6 @@ module.exports = {
|
|||||||
createChannel,
|
createChannel,
|
||||||
getBasename,
|
getBasename,
|
||||||
addToCache,
|
addToCache,
|
||||||
checkCache
|
checkCache,
|
||||||
|
clearCache
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user