Commit 3e70eba8 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

SUppression de clear-cache.sh redondant

parent f54052ca
Loading
Loading
Loading
Loading

clear-cache.sh

deleted100755 → 0
+0 −33
Original line number Diff line number Diff line
#!/usr/bin/env bash

#
# Script de vidage des divers caches applicatifs.
#
# Usages :
#   ./clear-cache.sh
#

set -o errexit

DIR=$(cd `dirname $0` && pwd)

#
# Cache Laminas
#
LAMINAS_CACHE_DIR=${DIR}/data/cache
[[ -d $LAMINAS_CACHE_DIR ]] && \
printf "Vidage du répertoire du cache Laminas '%s'... " $LAMINAS_CACHE_DIR && \
rm -rf $LAMINAS_CACHE_DIR/* && \
echo "Fait."

#
# Cache Doctrine
#
DOCTRINE_CACHE_DIR=${DIR}/data/DoctrineModule/cache
[[ -d $DOCTRINE_CACHE_DIR ]] && \
printf "Vidage du répertoire du cache Doctrine '%s'... " $DOCTRINE_CACHE_DIR && \
rm -rf $DOCTRINE_CACHE_DIR/* && \
echo "Fait."
${DIR}/vendor/bin/doctrine-module orm:clear-cache:query --flush
${DIR}/vendor/bin/doctrine-module orm:clear-cache:metadata --flush
${DIR}/vendor/bin/doctrine-module orm:clear-cache:result --flush
+0 −2
Original line number Diff line number Diff line
@@ -33,5 +33,3 @@ vendor/bin/laminas-development-mode enable # nécessaire !
vendor/bin/doctrine-module orm:generate-proxies
vendor/bin/laminas-development-mode disable
echo

./clear-cache.sh