diff --git a/fb_social.admin.inc b/fb_social.admin.inc index f885e70..f23f834 100644 --- a/fb_social.admin.inc +++ b/fb_social.admin.inc @@ -94,10 +94,10 @@ function _get_facebook_locale(){ $value = $name[0]; $fb_locale[$key] = $value; } - cache_set('fb_social', serialize($fb_locale), 'cache'); + cache_set('fb_social', $fb_locale, 'cache'); } else { - $fb_locale = unserialize($cache->data); + $fb_locale = $cache->data; } return $fb_locale; } \ No newline at end of file diff --git a/fb_social.install b/fb_social.install index 4854872..6d7285c 100644 --- a/fb_social.install +++ b/fb_social.install @@ -7,3 +7,10 @@ function fb_social_uninstall(){ variable_del($var->name); } } + +/** + * Clear the fb_social cache so it can be reloaded correctly. + */ +function fb_social_update_6101() { + cache_clear_all('fb_social', 'cache'); +}