Update timetable.js

This commit is contained in:
Zan
2026-01-15 19:24:12 +01:00
parent a94c06d893
commit 93c9c2d307

View File

@@ -313,6 +313,10 @@
} }
} }
let cachedTestData = null;
let testDataTimestamp = 0;
const TEST_DATA_CACHE_DURATION = 60000;
async function loadAllTestDataFromAPI() { async function loadAllTestDataFromAPI() {
const now = Date.now(); const now = Date.now();
if (cachedTestData && (now - testDataTimestamp) < TEST_DATA_CACHE_DURATION) { if (cachedTestData && (now - testDataTimestamp) < TEST_DATA_CACHE_DURATION) {