1 common.inc | backdrop_clear_js_cache() |
Deletes old cached JavaScript files and variables.
File
- core/
includes/ common.inc, line 5779 - Common functions that many Backdrop modules will need to reference.
Code
function backdrop_clear_js_cache() {
state_del('locale_javascript_parsed');
state_set('js_cache_files', FALSE);
file_scan_directory('public://js', '/.*/', array('callback' => 'backdrop_delete_file_if_stale'));
}