mirror of
https://github.com/limosek/zaf.git
synced 2024-11-14 06:29:07 +01:00
Cache now predelete content due to rights mistake
This commit is contained in:
parent
c96a7a17dc
commit
2d9c2059fe
@ -30,6 +30,7 @@ zaf_tocache(){
|
||||
local expiry
|
||||
|
||||
key=$(zaf_cache_key "$1")
|
||||
rm -f $ZAF_CACHE_DIR/$key $ZAF_CACHE_DIR/${key}.info
|
||||
echo "$2" >$ZAF_CACHE_DIR/$key
|
||||
echo "$1" >$ZAF_CACHE_DIR/${key}.info
|
||||
expiry=$(zaf_date_add "$3")
|
||||
@ -46,6 +47,7 @@ zaf_tocache_stdin(){
|
||||
local expiry
|
||||
|
||||
key=$(zaf_cache_key "$1")
|
||||
rm -f $ZAF_CACHE_DIR/$key $ZAF_CACHE_DIR/${key}.info
|
||||
cat >$ZAF_CACHE_DIR/$key
|
||||
if [ -s $ZAF_CACHE_DIR/$key ]; then
|
||||
expiry="$(zaf_date_add $2)"
|
||||
|
Loading…
Reference in New Issue
Block a user