Skip to content

The core module, DruxtClient, DruxtStore and the DruxtModule base component.

cacheClearHandler

View source on GitHub

cacheClearHandler ⇒ function

Server middleware that empties the process cache when Drupal asks.

Accepts POST with the secret in the X-Druxt-Secret header, never in the URL, so it stays out of access logs.

Kind: global constant
Returns: function - A Connect handler.

ParamTypeDescription
secretstringThe shared secret, from druxt.cache.secret.