You are here

function cache_actions_action_clear_css_js_cache in Cache Actions 7.2

Same name and namespace in other branches
  1. 6.2 cache_actions.rules.inc \cache_actions_action_clear_css_js_cache()
  2. 6 cache_actions.rules.inc \cache_actions_action_clear_css_js_cache()
  3. 7 cache_actions.rules.inc \cache_actions_action_clear_css_js_cache()

This action clears the css and js cache.

Return value

FALSE Return False to avoid problems with rules trying to run save.

1 string reference to 'cache_actions_action_clear_css_js_cache'
cache_actions_rules_action_info in ./cache_actions.rules.inc
Implements hook_rules_action_info().

File

./cache_actions.rules.inc, line 465
This file provides the rules integration for this module.

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_js_cache();
  drupal_clear_css_cache();
  return FALSE;
}