This repository has been archived on 2025-06-10. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
server/clear_cache.sh
2015-01-23 01:58:13 +01:00

19 lines
319 B
Bash
Executable file

#!/bin/bash
# This script deletes Onyx framework cache
cd `dirname "$0"`
. ./config.sh
for n in "$@"
do
MD5=`echo -n $n | md5sum | cut -d " " -f 1`
if [ -f "onyx/cache/$MD5.cache.php" ]
then
rm -f "onyx/cache/$MD5.cache.php"
echo "--- $n deleted"
else
echo "/!\\ $n not found ($MD5)"
fi
done