function drush_s3fs_refresh_cache in S3 File System 7.2
Same name and namespace in other branches
- 7.3 s3fs.drush.inc \drush_s3fs_refresh_cache()
- 7 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 31 - Defines a drush command that refreshes the S3 metadata cache.
Code
function drush_s3fs_refresh_cache() {
$config = _s3fs_get_config();
if (!_s3fs_validate_config($config)) {
drupal_set_message(dt('Unable to validate your s3fs configuration settings. Please configure S3 File System from the admin/config/media/s3fs page and try again.'), 'error');
return;
}
_s3fs_refresh_cache($config);
}