You are here

function drush_s3fs_refresh_cache in S3 File System 7

Same name and namespace in other branches
  1. 7.3 s3fs.drush.inc \drush_s3fs_refresh_cache()
  2. 7.2 s3fs.drush.inc \drush_s3fs_refresh_cache()

Refreshes the file metadata cache.

1 string reference to 'drush_s3fs_refresh_cache'
s3fs_drush_command in ./s3fs.drush.inc
Implements hook_drush_command().

File

./s3fs.drush.inc, line 24
Defines a drush command that refreshes the S3 metadata cache.

Code

function drush_s3fs_refresh_cache() {
  $config = _s3fs_get_config();
  if (!empty($config['bucket'])) {
    _s3fs_refresh_cache($config);
  }
  else {
    drupal_set_message(t('Unable to determine Amazon S3 bucket name for cache refresh. Please set the bucket name in the S3 File System configuration settings and try again.'), 'error');
  }
}