diff --git a/backend/db/index.ts b/backend/db/index.ts
index 1f69bfd..458b13a 100644
--- a/backend/db/index.ts
+++ b/backend/db/index.ts
@@ -14,16 +14,16 @@ import {
sqlExchangeRates,
sqlFutureOutagesPerArea,
sqlGeneration,
+ sqlGenerationAnyInterval,
sqlGroupBy,
+ sqlLatestGenerationInterval,
+ sqlLatestLoadInterval,
sqlLatestPricePerArea,
sqlLatestPricePerCountry,
- sqlLatestLoadInterval,
- sqlLatestGenerationInterval,
sqlLoad,
- sqlLoadAnyInterval,
sqlLoadAndGeneration,
+ sqlLoadAnyInterval,
sqlRaw,
- sqlGenerationAnyInterval,
} from "backend/db/sql/index.ts";
import { DataCache } from "utils/datacache.ts";
import { log } from "utils/log.ts";
diff --git a/backend/db/sql/index.ts b/backend/db/sql/index.ts
index e9fae21..660d59d 100644
--- a/backend/db/sql/index.ts
+++ b/backend/db/sql/index.ts
@@ -438,14 +438,14 @@ export {
sqlExchangeRates,
sqlFutureOutagesPerArea,
sqlGeneration,
+ sqlGenerationAnyInterval,
sqlGroupBy,
+ sqlLatestGenerationInterval,
+ sqlLatestLoadInterval,
sqlLatestPricePerArea,
sqlLatestPricePerCountry,
- sqlLatestLoadInterval,
- sqlLatestGenerationInterval,
sqlLoad,
- sqlLoadAnyInterval,
sqlLoadAndGeneration,
+ sqlLoadAnyInterval,
sqlRaw,
- sqlGenerationAnyInterval,
};
diff --git a/backend/scheduler/jobs/daily.currencyupdate.ts b/backend/scheduler/jobs/daily.currencyupdate.ts
index 9a3b0fd..db47c3b 100644
--- a/backend/scheduler/jobs/daily.currencyupdate.ts
+++ b/backend/scheduler/jobs/daily.currencyupdate.ts
@@ -40,8 +40,6 @@ const DailyCurrencyUpdate = async () => {
log("info", `Scheduled data update done`);
tm.emit("spotweb-main", "clear_cache", { cache: "exrate" });
- //tm.emit("spotweb-main-2", "clear_cache", { cache: "exrate" });
- //tm.emit("spotweb-main-3", "clear_cache", { cache: "exrate" });
database.close();
diff --git a/backend/scheduler/jobs/daily.outageupdate.ts b/backend/scheduler/jobs/daily.outageupdate.ts
index 8328f1b..6d99bc5 100644
--- a/backend/scheduler/jobs/daily.outageupdate.ts
+++ b/backend/scheduler/jobs/daily.outageupdate.ts
@@ -98,8 +98,6 @@ const DailyOutageUpdate = async () => {
log("info", `Scheduled data update done`);
tm.emit("spotweb-main", "clear_cache", { cache: "outage" });
- //tm.emit("spotweb-main-2", "clear_cache", { cache: "outage" });
- //tm.emit("spotweb-main-3", "clear_cache", { cache: "outage" });
database.close();
diff --git a/backend/scheduler/jobs/daily.priceupdate.ts b/backend/scheduler/jobs/daily.priceupdate.ts
index 4eccd5b..47f9e85 100644
--- a/backend/scheduler/jobs/daily.priceupdate.ts
+++ b/backend/scheduler/jobs/daily.priceupdate.ts
@@ -119,8 +119,6 @@ const DailyPriceUpdate = async () => {
log("info", `Scheduled data update done`);
tm.emit("spotweb-main", "clear_cache", { cache: "spotprices" });
- //tm.emit("spotweb-main-2", "clear_cache", { cache: "spotprices" });
- //tm.emit("spotweb-main-3", "clear_cache", { cache: "spotprices" });
database.close();
diff --git a/backend/scheduler/jobs/hourly.consumptionupdate.ts b/backend/scheduler/jobs/hourly.consumptionupdate.ts
index 9335960..ff84646 100644
--- a/backend/scheduler/jobs/hourly.consumptionupdate.ts
+++ b/backend/scheduler/jobs/hourly.consumptionupdate.ts
@@ -75,17 +75,10 @@ const HourlyConsumptionUpdate = async () => {
log("error", `Error occured while updating data, skipping. Error: ${e}`);
}
- // Clear memory cache
- log("info", `Database changed, clearing cache, realm load.`);
-
log("info", `Scheduled data update done`);
tm.emit("spotweb-main", "clear_cache", { cache: "load" });
tm.emit("spotweb-main", "clear_cache", { cache: "generation" });
- //tm.emit("spotweb-main-2", "clear_cache", { cache: "load" });
- //tm.emit("spotweb-main-2", "clear_cache", { cache: "generation" });
- //tm.emit("spotweb-main-3", "clear_cache", { cache: "load" });
- //tm.emit("spotweb-main-3", "clear_cache", { cache: "generation" });
database.close();
diff --git a/backend/scheduler/jobs/hourly.productionupdate.ts b/backend/scheduler/jobs/hourly.productionupdate.ts
index e3d6116..741d3f5 100644
--- a/backend/scheduler/jobs/hourly.productionupdate.ts
+++ b/backend/scheduler/jobs/hourly.productionupdate.ts
@@ -120,10 +120,6 @@ const HourlyProductionUpdate = async () => {
tm.emit("spotweb-main", "clear_cache", { cache: "load" });
tm.emit("spotweb-main", "clear_cache", { cache: "generation" });
- //tm.emit("spotweb-main-2", "clear_cache", { cache: "load" });
- //tm.emit("spotweb-main-2", "clear_cache", { cache: "generation" });
- //tm.emit("spotweb-main-3", "clear_cache", { cache: "load" });
- //tm.emit("spotweb-main-3", "clear_cache", { cache: "generation" });
database.close();
diff --git a/deno.json b/deno.json
index c255564..a339230 100644
--- a/deno.json
+++ b/deno.json
@@ -26,7 +26,7 @@
"croner": "jsr:@hexagon/croner@^9.1.0",
"entsoe_api_client": "https://deno.land/x/entsoe_api_client@1.0.3/mod.ts",
"fresh_seo": "https://deno.land/x/fresh_seo@1.0.1/mod.ts",
- "https://deno.land/x/glob_filter@1.0.0/mod.ts": "https://deno.land/x/glob_filter@1.0.1/mod.ts",
+ "https://deno.land/x/glob_filter@1.0.0/mod.ts": "https://deno.land/x/glob_filter@1.0.1/mod.ts",
"islands/": "./islands/",
"localekit_fresh": "https://deno.land/x/localekit_fresh@0.5.2/mod.ts",
"preact": "https://esm.sh/preact@10.19.6",
diff --git a/static/BingSiteAuth.xml b/static/BingSiteAuth.xml
index e095dd9..0d6d158 100644
--- a/static/BingSiteAuth.xml
+++ b/static/BingSiteAuth.xml
@@ -1,4 +1,4 @@