public function resetCacheCode() {
$this->setCacheCode(CRM_Utils_String::createRandom(5, CRM_Utils_String::ALPHANUMERIC));
+ // Also flush cms resource cache if needed
+ CRM_Core_Config::singleton()->userSystem->clearResourceCache();
}
/**
// nullop by default
}
+ /**
+ * Flush css/js caches
+ */
+ function clearResourceCache() {
+ // nullop by default
+ }
+
/**
* Return default Site Settings
*
watchdog('civicrm', $message, NULL, WATCHDOG_DEBUG);
}
}
+
+ /**
+ * Flush css/js caches
+ */
+ function clearResourceCache() {
+ _drupal_flush_css_js();
+ }
}