I am attempting to keep two instances of MODX synchronized. I am on MODX 2.6.5 and was curious if anyone had any code snippets that would be useful in clearing the cache of a specific resource that has been identified by it’s ID. Instead of clearing the entire cache on each instance everytime a resource is updated, I wanted to just clear the cache for one resource. I’ve found several articles related to doing this, but they do not appear to apply to version 2.6.5. The resource cache now appears to be found here (core/cache/db/objects/modResource) instead of here (/core/cache/resource/web/resources/).
Any help would be appreciated. Thank you!