diff --git a/easy_social.module b/easy_social.module
index cb8032f..f793e5f 100755
--- a/easy_social.module
+++ b/easy_social.module
@@ -548,14 +548,20 @@ function easy_social_get_widgets() {
 
       // Add widgets to easy_social_global_order variable.
       $order = variable_get_value('easy_social_global_order');
+
+      $modified = FALSE;
+
       foreach ($return as $name => $array) {
         if (!in_array($name, $order, TRUE)) {
           $order[] = $name;
+          $modified = TRUE;
         }
       }
 
-      variable_set('easy_social_global_order', $order);
-      cache_set('easy_social_widgets', $return, 'cache', CACHE_TEMPORARY);
+      if ($modified) {
+        variable_set('easy_social_global_order', $order);
+        cache_set('easy_social_widgets', $return, 'cache', CACHE_TEMPORARY);
+      }
     }
     $static = $return;
   }
