function cache_actions_action_clear_css_js_cache in Cache Actions 6
Same name and namespace in other branches
- 6.2 cache_actions.rules.inc \cache_actions_action_clear_css_js_cache()
- 7.2 cache_actions.rules.inc \cache_actions_action_clear_css_js_cache()
- 7 cache_actions.rules.inc \cache_actions_action_clear_css_js_cache()
This action clears the css and js cache.
File
- ./
cache_actions.rules.inc, line 267 - This file provides the rules integration for this module. @author Fabian Sörqvist <fabian.sorqvist@gmail.com>
Code
function cache_actions_action_clear_css_js_cache() {
// Change query-strings on css/js files to enforce reload for all users.
_drupal_flush_css_js();
drupal_clear_css_cache();
drupal_clear_js_cache();
}