diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-04-08 16:05:28 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-04-08 16:05:28 +0000 |
commit | 75868f14ba9fd4df6925d03bf614405413800f72 (patch) | |
tree | 0aa4e57b6fee5eaab9dc84b7c16389ba0c613177 /engine/lib/plugins.php | |
parent | f4829462077dff01b34343fee26b97500b2e5139 (diff) | |
download | elgg-75868f14ba9fd4df6925d03bf614405413800f72.tar.gz elgg-75868f14ba9fd4df6925d03bf614405413800f72.tar.bz2 |
Refs #968 & #946: Tidied filepath cache stuff by placing them in function calls.
git-svn-id: https://code.elgg.org/elgg/trunk@3194 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/plugins.php')
-rw-r--r-- | engine/lib/plugins.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/engine/lib/plugins.php b/engine/lib/plugins.php index 0a373457e..771fe7306 100644 --- a/engine/lib/plugins.php +++ b/engine/lib/plugins.php @@ -192,7 +192,11 @@ $plugins = serialize($plugins);
- $site->pluginorder = $plugins;
+ $site->pluginorder = $plugins; + + // Regenerate caches + elgg_view_regenerate_simplecache(); + elgg_filepath_cache_reset();
return $plugins;
@@ -213,13 +217,11 @@ function load_plugins() { global $CONFIG; - - $cache = elgg_get_filepath_cache(); if (!empty($CONFIG->pluginspath)) { // See if we have cached values for things - $cached_view_paths = $cache->load('view_paths'); + $cached_view_paths = elgg_filepath_cache_load(); if ($cached_view_paths) $CONFIG->views = unserialize($cached_view_paths); // temporary disable all plugins if there is a file called 'disabled' in the plugin dir
@@ -259,7 +261,7 @@ // Cache results if (!$cached_view_paths) - $cache->save('view_paths', serialize($CONFIG->views)); + elgg_filepath_cache_save(serialize($CONFIG->views)); }
}
|