Skip to content

Mustash api

Mark Croxton edited this page Jan 24, 2017 · 13 revisions

The Mustash API allows you to trigger predefined cache breaking rules via a URL endpoint.

Creating and using API hooks

On the settings screen, check the API plugin to activate it, enter an API key (which must be 16, 24 or 32 characters long exactly), create one or more API custom hooks, and press the 'save' button. Make a note of the API URL displayed:

Create one or more cache-breaking rules for the hook(s) that you just created:

To trigger rules attached to your custom hook, pass the hook as an argument to the API URL:

      http://www.my_website.com/?ACT=123&key=456…&hook=my_hook
Clone this wiki locally