From 607afe2fec078c0c0262e2d2d642082af9e15577 Mon Sep 17 00:00:00 2001 From: brettp Date: Sun, 24 Jan 2010 22:46:06 +0000 Subject: 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 --- actions/systemsettings/install.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'actions/systemsettings') 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); -- cgit v1.2.3