diff options
author | Thedro Neely <thedroneely@gmail.com> | 2022-11-11 05:50:53 -0500 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2022-11-11 05:50:53 -0500 |
commit | abdbac031912a395c7524ad0e6f5c70c918531b2 (patch) | |
tree | a84ad67c6c671c04cda3a155159cbf99b0dc54d0 | |
parent | 986f4ca2a835a22e6d9faa95e5d33d907de6281e (diff) | |
download | thedroneely.com-abdbac031912a395c7524ad0e6f5c70c918531b2.tar.gz thedroneely.com-abdbac031912a395c7524ad0e6f5c70c918531b2.tar.bz2 thedroneely.com-abdbac031912a395c7524ad0e6f5c70c918531b2.zip |
app/storage/cache/.keep -> storage/cache/.keep
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | bootstrap/Helpers.php | 6 | ||||
-rwxr-xr-x | bootstrap/helpers/cache | 6 | ||||
-rw-r--r-- | storage/cache/.keep (renamed from app/storage/cache/.keep) | 0 |
4 files changed, 7 insertions, 7 deletions
@@ -1,7 +1,7 @@ **/generators/exoference/*.html .hugo_build.lock -/app/storage /cockpit +/storage /vendor config.php generators/hugo/content diff --git a/bootstrap/Helpers.php b/bootstrap/Helpers.php index 76ee478..b3cc870 100644 --- a/bootstrap/Helpers.php +++ b/bootstrap/Helpers.php @@ -31,7 +31,7 @@ function views(string $folder, string $name) function cache(string $filename, string $data) { file_put_contents( - $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/storage/cache/' + $_SERVER['DOCUMENT_ROOT'] . '/..' . '/storage/cache/' . base64_encode($filename), $data ); } @@ -40,12 +40,12 @@ function fetch(string $uri, string $field) { if (file_exists( $_SERVER['DOCUMENT_ROOT'] . '/..' - . '/app/storage/cache/' . base64_encode($uri . $field) + . '/storage/cache/' . base64_encode($uri . $field) ) ) { echo file_get_contents( $_SERVER['DOCUMENT_ROOT'] . '/..' - . '/app/storage/cache/' . base64_encode($uri . $field) + . '/storage/cache/' . base64_encode($uri . $field) ); return; } diff --git a/bootstrap/helpers/cache b/bootstrap/helpers/cache index 267b442..ac7c8d2 100755 --- a/bootstrap/helpers/cache +++ b/bootstrap/helpers/cache @@ -1,4 +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:?}"; +cachedir=$(dirname "$(pwd)")/storage/cache +rm --recursive "${cachedir:?}/"* >/dev/null 2>&1 || { printf "Nothing to invalidate in %s\n" "${cachedir:?}" && exit; } +printf "Cache invalidated in %s\n" "${cachedir:?}" diff --git a/app/storage/cache/.keep b/storage/cache/.keep index e69de29..e69de29 100644 --- a/app/storage/cache/.keep +++ b/storage/cache/.keep |