aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/cache.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2012-01-25 19:31:01 -0500
committercash <cash.costello@gmail.com>2012-01-25 19:31:01 -0500
commit62a356615c690e4020ef143332270ee57525b2c4 (patch)
tree6a3ded880aaaa0c2e740435fb5260e220d523eb9 /engine/lib/cache.php
parent2bbb2d4630ff0f1a50748621b3943e5c5a8ce5d9 (diff)
downloadelgg-62a356615c690e4020ef143332270ee57525b2c4.tar.gz
elgg-62a356615c690e4020ef143332270ee57525b2c4.tar.bz2
plugins use language cache and cache is cleared properly
Diffstat (limited to 'engine/lib/cache.php')
-rw-r--r--engine/lib/cache.php10
1 files changed, 2 insertions, 8 deletions
diff --git a/engine/lib/cache.php b/engine/lib/cache.php
index c7e0ae31c..b329c58ec 100644
--- a/engine/lib/cache.php
+++ b/engine/lib/cache.php
@@ -35,17 +35,11 @@ function elgg_get_system_cache() {
/**
* Reset the system cache by deleting the caches
*
- * @return bool
+ * @return void
*/
function elgg_reset_system_cache() {
$cache = elgg_get_system_cache();
-
- $result = true;
- $cache_types = array('view_paths', 'view_types');
- foreach ($cache_types as $type) {
- $result = $result && $cache->delete($type);
- }
- return $result;
+ $cache->clear();
}
/**