Are you updating the pages with a snippet? If so, this will delete the cache for just one resource:
$key = $ctxResource->get('context_key');
$cKey = str_replace($mgrCtx, $key, $ck);
$modx->cacheManager->delete($cKey, array(
xPDO::OPT_CACHE_KEY => $modx->getOption('cache_resource_key', null, 'resource'),
xPDO::OPT_CACHE_HANDLER => $modx->getOption('cache_resource_handler', null,
$modx->getOption(xPDO::OPT_CACHE_HANDLER)),
xPDO::OPT_CACHE_FORMAT => (integer)$modx->getOption('cache_resource_format', null,
$modx->getOption(xPDO::OPT_CACHE_FORMAT, null, xPDOCacheManager::CACHE_PHP))
)
);
You could then refresh the cache for that page by accessing it with cURL.
It might make more sense, though, to use modCacheManager for this.
I think this would refresh the cache for all resources in the web context:
/* refresh the web context resources */
$modx->cacheManager->refresh(array(
'resource' => array('contexts' => array('web')),
));