Uncacher plugin isn’t working as expected.
Step to reproduce
Save a resource with “Clear Cache” UNchecked. The plugin is supposed to clear cache on just that resource and any parents and site start.
The cache file was not deleted for the current resource or any parents or start page.
The plugin’s job is to delete only the cache file of the current resource, and any/all parent resources as well as the site start page. And when the clear cache checkbox is off, this prevents MODX from clearing the entire site cache at the same time.
This plugin seems unable to delete the cache files for whatever reason, and there are no logged error messages regarding it.
File permissions at the server level are not the issue.
At best it seems like when the plugin uses the modx cacheManager, it perhaps doesn’t have some kind of internal permission to delete cache files created by modx itself?
I am able to use cacheManager->get() to grab the page and var_dump it. But switch to cacheManager->delete and nothing happens.
What is even more odd is that cacheManager->delete() returns TRUE as if it worked.
SiteGround on PHP 7.2.
Also tested on localhost.
Latest version of MODX 2.7.2.
I’ve done so much troubleshooting that I’m now giving up. I really can’t figure out why cacheManager->delete() isn’t able to delete a cached resource any more (plugin is from 2012). Something in core may have changed but I don’t know what else to check.