domma-cms 0.91.0 → 0.91.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "domma-cms",
3
- "version": "0.91.0",
3
+ "version": "0.91.1",
4
4
  "description": "File-based CMS powered by Domma and Fastify. Run npx domma-cms my-site to create a new project.",
5
5
  "type": "module",
6
6
  "main": "server/server.js",
@@ -13,6 +13,7 @@ import {getConfig} from '../../config.js';
13
13
  import {getPage, updatePage} from '../../services/content.js';
14
14
  import {getSitemapSources} from '../../services/hooks.js';
15
15
  import {seoEngine} from '../../services/seo/index.js';
16
+ import {invalidateTags} from '../../services/cache/index.js';
16
17
  import {excluded} from '../../../admin/js/lib/seo-settings.js';
17
18
 
18
19
  /**
@@ -107,6 +108,8 @@ export async function seoRoutes(fastify, opts = {}) {
107
108
  await updatePage(urlPath, {seo: seoFields}, undefined, {author: request.user?.username || request.user?.email});
108
109
  } else {
109
110
  e.store.setOverride(urlPath, fields);
111
+ // Overrides are applied as a page is rendered - a cached copy would keep the old tags.
112
+ invalidateTags([`page:${urlPath}`]).catch(() => {});
110
113
  }
111
114
  e.sitemapChanged();
112
115
  await e.reaudit(urlPath, {origin: e.originOf(request), focus: fields.focus}).catch(() => {});
@@ -286,6 +286,8 @@ async function seo(fastify, {enabled = true, getBaseUrl = null, rolesService = n
286
286
  saveConfig('seo', settings);
287
287
  cfg = settings;
288
288
  sitemapChanged();
289
+ // The organisation, article and robots settings are in every page's tags - and pages are cached.
290
+ invalidateTags(['site']).catch(() => {});
289
291
  schedule();
290
292
  return {settings};
291
293
  }
@@ -24,7 +24,7 @@
24
24
  <link rel="stylesheet" href="/dist/domma/themes/domma-themes.css">
25
25
 
26
26
  <!-- Site CSS -->
27
- <link rel="stylesheet" href="/public/css/site.css?v=20260919-nav-hover-2">
27
+ <link rel="stylesheet" href="/public/css/site.css?v=20260927-box">
28
28
  <link rel="stylesheet" href="/public/css/forms.css?v=20260926-end-panel">
29
29
  <!-- Menu item hover / current-page effects. Loaded after site.css so a
30
30
  menu's own highlight wins over the blanket link styling there. -->
@@ -137,17 +137,17 @@
137
137
 
138
138
  <!-- Site initialisation -->
139
139
  <script src="/public/js/site.js?v=20260926-field-limits" type="module"></script>
140
- <script src="/public/js/collection-context.js?v=20260919-ctx-tokens" type="module"></script>
140
+ <script src="/public/js/collection-context.js?v=20260927-ctx" type="module"></script>
141
141
  {{ctxMenusModule}}
142
142
 
143
143
  <!-- Floating menu panels: collapse to a hamburger, drag to move, resize.
144
144
  Loaded here rather than from site.js so server-rendered overlays and
145
145
  [menu] shortcodes are wired even on pages with no floating navbar. -->
146
- <script src="/public/js/menu-float.js?v=20260829-float-panel" type="module"></script>
146
+ <script src="/public/js/menu-float.js?v=20260927-float" type="module"></script>
147
147
 
148
148
  <!-- Interactive Collection Browser (used by [collection] shortcodes with
149
149
  searchable / filterable / sortable / paginate attributes) -->
150
- <script src="/public/js/collection-browser.js?v=20260523-browser"></script>
150
+ <script src="/public/js/collection-browser.js?v=20260927-browser"></script>
151
151
 
152
152
  <!-- Core Forms (logic engine must load before renderer) -->
153
153
  <script src="/public/js/form-logic-engine.js?v=20260926-limits"></script>