private static function cache_count($social, $count)
 {
     //$social_expire = ESSBSocialFansCounterHelper::get_option ( $social . '.expire' );
     //$expire_time = $social_expire;
     //if (empty ( $social_expire ))
     $expire_time = ESSBSocialFansCounterHelper::get_option('update');
     update_option('essbfcounter_' . $social . '_count', $count);
     update_option('essbfcounter_' . $social . '_expire', time() + $expire_time * 60);
 }
 public static function mailpoet()
 {
     $result = 0;
     $list = ESSBSocialFansCounterHelper::get_option('mailpoet.id');
     if (!empty($list)) {
         if ($list == 'all') {
             $result = ESSBSocialFansCounterHelper::mailpoet_total_subscribers();
         } else {
             $result = ESSBSocialFansCounterHelper::mailpoet_get_list_users($list);
         }
     }
     return $result;
 }