aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/api/cache.controller.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/api/cache.controller.php')
-rw-r--r--app/controllers/api/cache.controller.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/controllers/api/cache.controller.php b/app/controllers/api/cache.controller.php
new file mode 100644
index 0000000..2286445
--- /dev/null
+++ b/app/controllers/api/cache.controller.php
@@ -0,0 +1,7 @@
+<?php
+/**
+ * Invalidate cache
+ */
+if ($_SERVER['REQUEST_METHOD'] === 'POST') {
+ echo $cacheBust = shell_exec('../bootstrap/helpers/cache-bust');
+}