aboutsummaryrefslogtreecommitdiff
path: root/actions/admin
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-12-08 20:09:36 -0500
committercash <cash.costello@gmail.com>2011-12-08 20:09:36 -0500
commit1ec7692c1639e8415cd9984d9ad040ec28bd9755 (patch)
treeaddb8093c044e13cbbf33412d1670fb80a27f003 /actions/admin
parentcb20d84a4ce17c8071e8f474b82341ec1aec083d (diff)
downloadelgg-1ec7692c1639e8415cd9984d9ad040ec28bd9755.tar.gz
elgg-1ec7692c1639e8415cd9984d9ad040ec28bd9755.tar.bz2
Fixes #4185, #2111 adds control panel widget
Diffstat (limited to 'actions/admin')
-rw-r--r--actions/admin/site/flush_cache.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/actions/admin/site/flush_cache.php b/actions/admin/site/flush_cache.php
new file mode 100644
index 000000000..b81f5fc83
--- /dev/null
+++ b/actions/admin/site/flush_cache.php
@@ -0,0 +1,10 @@
+<?php
+/**
+ * Flush all the caches
+ */
+
+elgg_invalidate_simplecache();
+elgg_filepath_cache_reset();
+
+system_message(elgg_echo('admin:cache:flushed'));
+forward(REFERER); \ No newline at end of file