From 75ce4e14b38ef509dd840f599f2fc240c2f2aeca Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Tue, 18 Oct 2016 09:58:32 +0200 Subject: [PATCH] --- clear-caches.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 clear-caches.sh diff --git a/clear-caches.sh b/clear-caches.sh new file mode 100644 index 0000000..2ea1a14 --- /dev/null +++ b/clear-caches.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# clear all TYPO3 caches +# requires TYPO3 extension coreapi +set -e + +su -c "cd /var/www/site/htdocs && ./typo3/cli_dispatch.phpsh extbase cacheapi:clearsystemcache"\ + -s /bin/sh\ + www-data +su -c "cd /var/www/site/htdocs && ./typo3/cli_dispatch.phpsh extbase cacheapi:clearallcaches"\ + -s /bin/sh\ + www-data \ No newline at end of file -- 2.30.2