function search_api_attachments_file_update in Search API attachments 7
Same name and namespace in other branches
- 8 search_api_attachments.module \search_api_attachments_file_update()
 - 9.0.x search_api_attachments.module \search_api_attachments_file_update()
 
Implements hook_file_update().
File
- ./
search_api_attachments.module, line 111  - Drupal hooks.
 
Code
function search_api_attachments_file_update($file) {
  // If there is cached extracted data for this file, delete it so it can be
  // re-extracted.
  $file = (array) $file;
  $cid = 'cached_extraction_:' . $file['fid'];
  cache_clear_all($cid, 'cache_search_api_attachments');
}