[[++site_url]] getting cached from dev site?

In MODx 3.1.2

On a dev.server.com website I created a snippet to grab a snapshot of a custom email friendly resource (populated by pdoResources). When finished we pointed the regular server.com domain to the same folder and parked the dev subdomain. The emails that go out still use the dev.server.com domain whenever [[++site_url]] is used in the main template or resource page.

During development I also created a version of the email snippet to save to file and those URLs render out fine.

I’ve cleared the cache and deleted the /core/cache/ contents, but still the dev.server.com gets injected.

It seems like this has to be a caching issue, but where might it be happening?

Try changing it to:
[[!++site_url]]

Then manually clear the site cache.

2 Likes