From: Paul Hänsch Date: Sun, 21 May 2023 13:40:45 +0000 (+0200) Subject: make cache files language specific X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=199c43e1d7127bbfc9659a387b733bff11153975;p=shellwiki make cache files language specific --- diff --git a/handlers/20_page.sh b/handlers/20_page.sh index eb894c2..5c3da0c 100755 --- a/handlers/20_page.sh +++ b/handlers/20_page.sh @@ -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