implement flask caching

This commit is contained in:
steven 2025-03-22 23:00:30 -04:00
parent 0db90601d9
commit e4bd7da77f
2 changed files with 9 additions and 8 deletions

View file

@ -9,11 +9,7 @@
<link rel="icon" type="image/x-icon" href="/bus.svg">
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js" integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin="" />
<style>
html,body{height:100%;margin:0;}
#map{height:100vh;}
#clock{background-color:black;color:white;font:16px monospace;}
</style>
<style>html,body{height:100%;margin:0;}#map{height:100vh;}</style>
</head>
<body>
<div id="map"></div>
@ -30,7 +26,7 @@ function updateMap() {
})
})
}
setInterval(updateMap,5000); // use websocket
setInterval(updateMap,5000);
let locationMarker=L.marker([0,0]),locationRadius=L.circle([0,0]);
let locationLayer=L.layerGroup([locationMarker,locationRadius]).addTo(map);