3 # A simple shell script to delete a media from Apache's mod_disk_cache.
7 # mod_disk_cache directory
8 CACHE_DIRECTORY
="/tmp/pleroma-media-cache"
10 ## Removes an item via the htcacheclean utility
11 ## $1 - the filename, can be a pattern .
12 ## $2 - the cache directory.
14 htcacheclean
-p "${2}" "${1}"
20 echo "$SCRIPTNAME delete \`$url\` from cache ($CACHE_DIRECTORY)"
21 purge_item
"$url" $CACHE_DIRECTORY