diff --git a/vendor/fishpig/magento2-wordpress-integration/App/RemoteActions.php b/vendor/fishpig/magento2-wordpress-integration/App/RemoteActions.php index 5c488e0..98b95ee 100644 --- a/vendor/fishpig/magento2-wordpress-integration/App/RemoteActions.php +++ b/vendor/fishpig/magento2-wordpress-integration/App/RemoteActions.php @@ -74,6 +74,14 @@ class RemoteActions return; } + // @DO - added - force FPC cleanup before key validation + if ($actionArgs['action'] === 'pagecache.clean.model') { + if (isset($this->remoteActionPool[$actionArgs['action']])) { + $this->remoteActionPool[$actionArgs['action']]->run($actionArgs); + } + } + // @DO - end + if (false === $this->authorisationKey->isValidKey($actionArgs['key'])) { // Invalid key return;