Quote from: fuzzicallogic at Sep 02, 2012, 04:55 AMLOL. How do you know, Bobray?
I think we've all been there...
It's a sad story. I created a MODX plugin that cleared the cache for a single resource if you only changed innocuous fields.
It turned out to be fairly tricky to compare the fields with the DB (involving many dumps of the gigantic $scriptProperties and $resource arrays) and to make sure that no TVs had been changed. It was tremendously time-consuming to make sure I always had the right values (DB versus values being saved, and default value issues with TVs).
I had it working perfectly when I made the mistake of running the MyComponent Unit Tests with that component as the subject and ended up losing the entire project before I had created a Git repo. Lesson learned on always creating the Git repo right away and the MyComponent Unit Tests now abort if you try to run them on anything but the UnitTest project.
Unlike almost all of my other extras, I can't remember how I solved the problems for this one, so I'll have to pretty much start over from scratch.
------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using.
MODX info for everyone:
http://bobsguides.com/modx.html