[TEP-COMMIT] [CVS admin] clear the configuration cache when changes are made

anonymous-OfajU3CKLf1/[email protected] 16 Apr 2004 14:02:11 -0000
Newsgroups gmane.comp.web.oscommerce.cvs
Message-ID <[email protected]>
Commit in admin/admin on MAIN

modules.php +6 1.47 -> 1.48

clear the configuration cache when changes are made

----------

admin /admin

modules.php 1.47 -> 1.48

diff -u -r1.47 -r1.48
--- modules.php 2003/06/29 22:50:52 1.47
+++ modules.php 2004/04/16 14:02:09 1.48
@@ -46,6 +46,9 @@

while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {
tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'");
}

+
+ osC_Cache::clear('configuration');
+

tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module']));
break;
case 'install':

@@ -61,6 +64,9 @@

$module->remove();
}
}

+
+ osC_Cache::clear('configuration');
+

tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $class));
break;
}

CVSspam 0.2.8

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click