function drupal_clear_js_cache

cis7 common.inc drupal_clear_js_cache()
cle7 common.inc drupal_clear_js_cache()
elmsmedia7 common.inc drupal_clear_js_cache()
icor7 common.inc drupal_clear_js_cache()
meedjum_blog7 common.inc drupal_clear_js_cache()
mooc7 common.inc drupal_clear_js_cache()

Deletes old cached JavaScript files and variables.

5 calls to drupal_clear_js_cache()
admin_menu_toggle_modules in sites/all/modules/ulmus/admin_menu/admin_menu.inc
Menu callback; Enable/disable developer modules.
at_core_settings_submit in sites/all/themes/ulmus/adaptivetheme/at_core/inc/forms/at_core.submit.inc
Custom submit function - this mostly builds and saves stylesheets for various features such as the responsive layout and font styles.
drupal_flush_all_caches in includes/common.inc
Flushes all cached data on the site.
wysiwyg_update_6200 in sites/all/modules/ulmus/wysiwyg/wysiwyg.install
Clear JS/CSS caches to ensure that clients load fresh copies.
_admin_menu_flush_cache in sites/all/modules/ulmus/admin_menu/admin_menu.inc
Flush all caches or a specific one.
1 string reference to 'drupal_clear_js_cache'
system_performance_settings in modules/system/system.admin.inc
Form builder; Configure site performance settings.

File

includes/common.inc, line 4988
Common functions that many Drupal modules will need to reference.

Code

function drupal_clear_js_cache() {
  variable_del('javascript_parsed');
  variable_del('drupal_js_cache_files');
  file_scan_directory('public://js', '/.*/', array('callback' => 'drupal_delete_file_if_stale'));
}