4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC. All rights reserved. |
7 | This work is published under the GNU AGPLv3 license with some |
8 | permitted exceptions and without any warranty. For full license |
9 | and copyright information, see https://civicrm.org/licensing |
10 +--------------------------------------------------------------------+
16 * @copyright CiviCRM LLC https://civicrm.org/licensing
21 namespace Civi\Api4\Action\System
;
24 * Clear CiviCRM caches, and optionally rebuild triggers and reset sessions.
26 * @method bool getTriggers
27 * @method $this setTriggers(bool $triggers)
28 * @method bool getSession
29 * @method $this setSession(bool $session)
31 class Flush
extends \Civi\Api4\Generic\AbstractAction
{
38 protected $triggers = FALSE;
45 protected $session = FALSE;
47 public function _run(\Civi\Api4\Generic\Result
$result) {
48 \CRM_Core_Invoke
::rebuildMenuAndCaches($this->triggers
, $this->session
);