SproutCMS

This is the code documentation for the SproutCMS project

function _invalidateCaches()

This is called after every add, edit and delete, as well as other (i.e. bulk) actions.
Use it to clear any frontend caches. The default is an empty method.

Usage

void $ManagedAdminController->_invalidateCaches ( string $action [, int $item_id ] );

Arguments

  1. string $action
    The name of the action (e.g. 'add', 'edit', 'delete', etc)
  2. int $item_id = NULL
    The item which was affected. Bulk actions (e.g. reorders) will have this set to NULL.

Return value

  • void