]> git.plutz.net Git - shellwiki/commitdiff
make cache files language specific
authorPaul Hänsch <paul@plutz.net>
Sun, 21 May 2023 13:40:45 +0000 (15:40 +0200)
committerPaul Hänsch <paul@plutz.net>
Sun, 21 May 2023 13:40:45 +0000 (15:40 +0200)
handlers/20_page.sh

index eb894c2cda080d8b5a9c8819a86c91eea510df0f..5c3da0ccf77573169383d756ebe2593d38bbf079 100755 (executable)
@@ -11,7 +11,7 @@ wiki() {
   # Get page from data or underlay dir, handle caching
   local page="$(PATH "$1")" mdfile cache cachetime
 
-  cache="$_DATA/pages/$page/#page.${USER_ID}.cache"
+  cache="$_DATA/pages/$page/#page:${LANGUAGE}.${USER_ID}.cache"
 
   mdfile="$(mdfile "$page")" || return 4
   acl_read "$page" || return 3