diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-01-24 22:46:06 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-01-24 22:46:06 +0000 |
commit | 607afe2fec078c0c0262e2d2d642082af9e15577 (patch) | |
tree | c5b61ef80d95c95c86080dddd9045820e621d60c /actions/systemsettings | |
parent | 9fff971c91015138f6b1344894320ef43a4816d5 (diff) | |
download | elgg-607afe2fec078c0c0262e2d2d642082af9e15577.tar.gz elgg-607afe2fec078c0c0262e2d2d642082af9e15577.tar.bz2 |
Refs #1450, Refs #1461, Refs #1460: Install now clears out views caches.
git-svn-id: http://code.elgg.org/elgg/trunk@3838 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/systemsettings')
-rw-r--r-- | actions/systemsettings/install.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actions/systemsettings/install.php b/actions/systemsettings/install.php index 3e401bb5c..98d958a67 100644 --- a/actions/systemsettings/install.php +++ b/actions/systemsettings/install.php @@ -114,6 +114,12 @@ if (get_input('settings') == 'go') { enable_plugin('search', $site->getGUID()); } + // reset the views path in case of installing over an old data dir. + // @todo should this warn / error first? + $dataroot = datalist_get('dataroot'); + $cache = new ElggFileCache($dataroot); + $cache->delete('view_paths'); + // Now ping home if ($usage) { ping_home($site); |