Hey gents, thanks for the replies!
@SepiaRiver:
Cache Provider
Yep, using default xPDO File Cache. On this server, APC is an option too -- think that might have anything to do with it?
Shared Mount
I'm not 100% sure what you mean by this, but this is on a shared host. Definitely not the absolute fastest server, but usually usable!
PHP Version
Using 5.5... 5.6 is available to me, I'll give that a try this AM. Might be able to get 7 as well -- you know if MODX plays nice with 7?
Server Software
Apache is all I know... can dig into a specific version if you think it could be a culprit!
@opengeek
cURL Connection
Connecting to some google drive XML documents that are being used to generate a view on the frontend. It seems strange to me that cURL would be the culprit -- doesn't the script exit when there's a cache hit? Indeed, when I toss a "return true;" on line 1 of the script, the page loads very quick, but when I put it on line 11, it's back to its slow load behaviour. cURL indeed slows things down when it has to be built, but shouldn't the cache circumvent it?
$type
There's four different endpoints that cURL is connecting to. This script is being used to connect to one of the four based on which $type it is. This is just a string passed to the snippet when it's called from the template.
cacheKey
I believe this is behaving as expected. This code is based on "Example 2" in "Programmatic Caching" in
https://rtfm.modx.com/revolution/2.x/developing-in-modx/advanced-development/caching. I am aware that the two keys are different -- In my file system, there is an "integration" folder with four different files that correspond to the four types above. Does this make sense, or do you think I am indeed mixing them up?
@gallenkamp
MODX Version
My favourite version, 2.4.3!
Thanks!!