function drupal_clear_js_cache

Same name in other branches
  1. 8.9.x core/includes/common.inc \drupal_clear_js_cache()

Deletes old cached JavaScript files and variables.

1 call to drupal_clear_js_cache()
drupal_flush_all_caches in includes/common.inc
Flushes all cached data on the site.
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 5264

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',
    ));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.