You are here

function drupal_clear_js_cache in Drupal 6

Same name and namespace in other branches
  1. 8 core/includes/common.inc \drupal_clear_js_cache()
  2. 7 includes/common.inc \drupal_clear_js_cache()

Delete all cached JS files.

2 calls to drupal_clear_js_cache()
drupal_flush_all_caches in includes/common.inc
Flush all cached data on the site.
system_modules_submit in modules/system/system.admin.inc
Submit callback; handles modules form submission.
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 2560
Common functions that many Drupal modules will need to reference.

Code

function drupal_clear_js_cache() {
  file_scan_directory(file_create_path('js'), '.*', array(
    '.',
    '..',
    'CVS',
  ), 'file_delete', TRUE);
  variable_set('javascript_parsed', array());
}