From 38bd74b94263327b4b8fc2e120747deb7b72fbb2 Mon Sep 17 00:00:00 2001 From: Christian Date: Thu, 13 Nov 2008 21:29:37 +0000 Subject: [PATCH] clear cache after updated or uninstalled... --- root/install_portal/install.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/root/install_portal/install.php b/root/install_portal/install.php index 4886d120..624f107c 100644 --- a/root/install_portal/install.php +++ b/root/install_portal/install.php @@ -983,6 +983,9 @@ if( $user->data['is_registered'] && $auth->acl_get('a_') ) } } + // clear cache and log what we did + $cache->purge(); + add_log('admin', $page_title . ' updated'); $updated = true; } } @@ -1097,8 +1100,11 @@ if( $user->data['is_registered'] && $auth->acl_get('a_') ) $db->sql_query($sql); } $db->sql_freeresult($result); - - $installed = true; + + // clear cache and log what we did + $cache->purge(); + add_log('admin', $page_title . ' uninstalled'); + $uninstalled = true; } else {