diff --git a/server/db.js b/server/db.js index 3756e4c..03cfd11 100644 --- a/server/db.js +++ b/server/db.js @@ -239,30 +239,4 @@ const favorites = { } }; - -// EPG cache operations (simple in-memory for now) -const epgCache = { - cache: new Map(), - - get(channelId) { - return this.cache.get(channelId); - }, - - set(sourceId, channelId, data) { - this.cache.set(channelId, { sourceId, data, updated_at: new Date() }); - }, - - clear(sourceId = null) { - if (sourceId) { - for (const [key, value] of this.cache) { - if (value.sourceId === sourceId) { - this.cache.delete(key); - } - } - } else { - this.cache.clear(); - } - } -}; - -module.exports = { sources, hiddenItems, favorites, epgCache }; +module.exports = { sources, hiddenItems, favorites };