You are here

function sexybookmarks_flush_caches in Share Buttons, Related Posts, Content Analytics - Shareaholic 7.2

Same name and namespace in other branches
  1. 7 sexybookmarks.module \sexybookmarks_flush_caches()

Implements hook_flush_caches().

File

./sexybookmarks.module, line 36
Contains core functions for the SexyBookmarks module.

Code

function sexybookmarks_flush_caches() {

  // Only flush cache if we can ping Shareaholic.
  $request = drupal_http_request('http://www.shareaholic.com');
  if ($request->code == 200) {
    file_unmanaged_delete_recursive('public://sexybookmarks');
  }
  return array();
}