]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #1450, Refs #1461, Refs #1460: Install now clears out views caches.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 24 Jan 2010 22:46:06 +0000 (22:46 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 24 Jan 2010 22:46:06 +0000 (22:46 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@3838 36083f99-b078-4883-b0ff-0f9b5a30f544

actions/systemsettings/install.php

index 3e401bb5cc032a3c69272c4543455523f5e9aa45..98d958a6712eb1da63886412264c4010d7bd7d09 100644 (file)
@@ -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);