function save_vars() { if (!update_option('blogger_importer_connector', $this)) { Blogger_Import::_log('Error saving connection'); Blogger_Import::_log(var_export(get_object_vars($this),true)); }; return !empty($vars); }
function save_vars() { $vars = get_object_vars($this); //http://core.trac.wordpress.org/ticket/13480 //Calling update options multiple times in a page (or ajax call) means that the cache kicks in and does not save to DB?? //Store each blog it it's own setting so that we retrieve and save less data each time it updates the stats if (!update_option('blogger_importer_blog_'.$this->ID, $vars)) { Blogger_Import::_log('Error saving blogger status'); Blogger_Import::_log(var_export(get_object_vars($this),true)); }; return !empty($vars); }