From 24a400e9ba83bcbfe6e65961e73e0d2cd2ee382f Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Fri, 19 Jun 2020 23:12:35 -0400 Subject: app/controllers/api: Add cache controller --- bootstrap/helpers/cache-bust | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 bootstrap/helpers/cache-bust (limited to 'bootstrap') diff --git a/bootstrap/helpers/cache-bust b/bootstrap/helpers/cache-bust new file mode 100755 index 0000000..267b442 --- /dev/null +++ b/bootstrap/helpers/cache-bust @@ -0,0 +1,4 @@ +#!/bin/sh -eu +cachedir=$(dirname "$(pwd)")/app/storage/cache; +rm -r "${cachedir:?}/"* > /dev/null 2>&1 || { echo "Nothing to invalidate in ${cachedir:?}" && exit; }; +echo "Cache invalidated in ${cachedir:?}"; -- cgit v1.2.3