You are here

function amazons3_clear_cache_submit in AmazonS3 7

Admin sub-form submit callback; clear file metadata cache.

1 string reference to 'amazons3_clear_cache_submit'
amazons3_admin in ./amazons3.module
Implements hook_admin().

File

./amazons3.module, line 232
Provides S3 stream wrapper

Code

function amazons3_clear_cache_submit($form, &$form_state) {
  db_query('TRUNCATE TABLE {amazons3_file}');
  drupal_set_message(t('Cache cleared.'));
}