]> git.plutz.net Git - serve0/commitdiff
cache invalidation for new cache naming scheme
authorpaul <paul@plutz.net>
Mon, 5 Oct 2015 23:42:51 +0000 (23:42 +0000)
committerpaul <paul@plutz.net>
Mon, 5 Oct 2015 23:42:51 +0000 (23:42 +0000)
svn path=/trunk/; revision=93

actions/meta.sh
actions/multitag.sh

index 1895f1dddc148e99f5476d5c1f37d7d871a576bc..13732e4b47659b308e8b10f62a35c5241f976fff 100755 (executable)
@@ -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
 
index dd1d2cf19574e8a63002d1638b128f4a9dc2ac08..db106f512406defd685eb73f89cacd5b2fdbe957 100755 (executable)
@@ -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"