Cache pages with same slug

we ran into a problem with caching pages with identical page-slugs in different subdirectories. the naming of the cache file does only include the slug, not the path, e.g.

<slug>.de.html.cache

and thus kirby retrieves the wrong page depending on which one was saved last. is this the intended behaviour AND/OR is there a way to work around this, e.g. set up custom cache page names?

Maybe I’m missing something. Each subpage cache is stored in a separate folder, so there cannot be any conflicts?

e.g

  • /site/cache/domain/pages/notes/himalaya-and-back-html_7aa33cc37a046755184a9d812db73de24a42af4c.cache
  • /site/cache/domain/pages/photography/himalaya-and-back-html_7aa33cc37a046755184a9d812db73de24a42af4c.cache

Which Kirby version are you using? Your file names look different from mine…

ok, weird. we are using 3.5.3. Cache Folder looks like this:

Can this be due to having custom routes in the config? However, one occurence of the page is not affected by routes at all.

The issue was fixed in 3.5.3.1 Routing problems since 3.5.2 Ā· Issue #3157 Ā· getkirby/kirby Ā· GitHub