drupal_clear_js_cache()
Deletes old cached JavaScript files and variables.
in Drupal 8.x, will be removed before Drupal 9.0. Use \Drupal\Core\Asset\AssetCollectionOptimizerInterface::deleteAll().
function drupal_clear_js_cache() { \Drupal::service('asset.js.collection_optimizer')->deleteAll(); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!includes!common.inc/function/drupal_clear_js_cache/8.1.x