Recache options when updating.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1009 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-03-25 07:21:00 +00:00
parent 790f6e50eb
commit 82605b706b
1 changed files with 3 additions and 1 deletions

View File

@ -343,9 +343,11 @@ function get_alloptions() {
}
function update_option($option_name, $newvalue) {
global $wpdb, $tableoptions;
global $wpdb, $tableoptions, $cache_settings;
// No validation at the moment
$wpdb->query("UPDATE $tableoptions SET option_value = '$newvalue' WHERE option_name = '$option_name'");
$cache_settings = get_alloptions(); // Re cache settings
return true;
}
function add_option() {