-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
First of all thank you very much for that nice snippet, helps a lot!
What I'm trying to do (according to the wiki here on github) is to clear a specific cache partition (set by getCache) with a plugin that is attached to the system event OnDocFormSave, but it seems that I'm just too stupid to get it right^^...never worked with processors before, so maybe that's the reason, but the RTFM about runProcessor didn't really help...I think it's something with passing the right path to the method, but I couldn't figure it out...what I tried was:
$response = $modx->runProcessor('/cache/partition/refresh', array(
'processors_path' => MODX_CORE_PATH . 'components/getcache/cache/partition/refresh',
'partitions' => 'partitionname'
));
if ($response->isError()) {
return; //$modx->log(modX::LOG_LEVEL_ERROR, 'There was an error refreshing cache partition' . $response->getMessage());
} else {
return;// $modx->log(modX::LOG_LEVEL_ERROR, 'Cache partition successfully cleared');
}but what I get is just an endless saving loop =/, any tipps on that, would maybe also be helpful for others to include it more precisely into the wiki.
thanks in advance for any advice!
Metadata
Metadata
Assignees
Labels
No labels