Updated cacheing to use persistent json cache

This commit is contained in:
Trevor Mears
2025-12-27 21:16:17 -08:00
parent 52a7cd53b4
commit bb5dc89311
5 changed files with 245 additions and 31 deletions
+7 -2
View File
@@ -12,8 +12,13 @@ class GuidePage {
}
async show() {
// Always reload EPG data when page is shown to ensure fresh data
await this.app.epgGuide.loadEpg();
// Only load EPG data if not already loaded
if (!this.app.epgGuide.programmes || this.app.epgGuide.programmes.length === 0) {
await this.app.epgGuide.loadEpg();
} else {
// Just re-render with existing data (updates time position)
this.app.epgGuide.render();
}
}
hide() {