I have a snippet that updates some system settings by updating and saving modSystemSetting objects. I noticed that old settings are still coming from the cache.
Clearing the cache works:
$cacheManager = $modx->getCacheManager();
$cacheManager->clearCache();
But this clears the whole cache which isn't good. How could I clear only updated settings? Clearing all systems settings would work too.