So, a little bit of background:
I'm testing an approach where users make changes on one MODx install, and MySQL replicates the data to another MODx install where visitors will actually view the site.
This code is a (dirty) prototype of a service that the management install will call to clear the cache on the "live" install. This code is currently just sitting in /html/assets/components/, and is being called via cURL.
That's why I'm manually including the config file.
And, yes, I'm using the default, file-based cache handler.