Update pages server function(s)

This commit is contained in:
2026-04-11 16:29:53 +01:00
parent 35f7a6fc85
commit e0c2ab5872
9 changed files with 32 additions and 23 deletions
@@ -3,8 +3,8 @@ import { log } from "../../../utils/log";
import writeCache from "../../cache/write-cache";
export default async function generateWebPageGetCachePage({ module, routeParams, serverRes, root_module, html, }) {
const config = _.merge(root_module?.config, module?.config);
const cache_page = config?.cachePage || serverRes?.cachePage || false;
const expiry_seconds = config?.cacheExpiry || serverRes?.cacheExpiry;
const cache_page = config?.cachePage || serverRes?.cache_page || false;
const expiry_seconds = config?.cacheExpiry || serverRes?.cache_expiry;
if (cache_page && routeParams?.url) {
try {
const is_cache = typeof cache_page == "boolean"