From: paul Date: Mon, 5 Oct 2015 23:42:51 +0000 (+0000) Subject: cache invalidation for new cache naming scheme X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=8d127fe6a7ae92a34d8885a945a36dca1b47211e;p=serve0 cache invalidation for new cache naming scheme svn path=/trunk/; revision=93 --- diff --git a/actions/meta.sh b/actions/meta.sh index 1895f1d..13732e4 100755 --- a/actions/meta.sh +++ b/actions/meta.sh @@ -36,7 +36,7 @@ else echo >>"$file" echo -e "${description}" >> "$file" rm "${_DATA}/cache/$info.cache" 2>/dev/null - rm ${_DATA}/cache/\?* 2>/dev/null + rm ${_DATA}/cache/*[0-9]\?* 2>/dev/null rm ${_DATA}/cache/taglist 2>/dev/null fi diff --git a/actions/multitag.sh b/actions/multitag.sh index dd1d2cf..db106f5 100755 --- a/actions/multitag.sh +++ b/actions/multitag.sh @@ -44,7 +44,7 @@ while [ -n "${_POST[tagsel$n]}" ]; do [ -z "$n" ] && n=0 || n=$(($n + 1)) done -rm "${_DATA}"/cache/\?* 2>/dev/null +rm "${_DATA}"/cache/*[0-9]\?* 2>/dev/null [ -n "${_POST[tags]}" ] && rm "${_DATA}"/cache/taglist 2>/dev/null echo -n "Location: ?o=$order&s=$search&f=$filter&pn=$page\n\n"