(no commit message)
authorChristian Weiske <cweiske@cweiske.de>
Tue, 18 Oct 2016 07:58:32 +0000 (09:58 +0200)
committerwww-cweiske <www-cweiske@localhost.localdomain>
Tue, 18 Oct 2016 07:58:32 +0000 (09:58 +0200)
clear-caches.sh [new file with mode: 0644]

diff --git a/clear-caches.sh b/clear-caches.sh
new file mode 100644 (file)
index 0000000..2ea1a14
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh\r
+# clear all TYPO3 caches\r
+# requires TYPO3 extension coreapi\r
+set -e\r
+\r
+su -c "cd /var/www/site/htdocs && ./typo3/cli_dispatch.phpsh extbase cacheapi:clearsystemcache"\\r
+   -s /bin/sh\\r
+   www-data\r
+su -c "cd /var/www/site/htdocs && ./typo3/cli_dispatch.phpsh extbase cacheapi:clearallcaches"\\r
+   -s /bin/sh\\r
+   www-data
\ No newline at end of file