You are here

function fastly_rules_action_purge in Fastly 7

Rules action to purge the URL after the content is updated.

File

./fastly.rules.inc, line 37
Integration with the Rules module.

Code

function fastly_rules_action_purge() {
  $node = menu_get_object();
  $api = fastly_get_api();
  $api
    ->purgePath('node/' . $node->nid);
}