Bugfix - caches weren't getting cleared/updated on publish.

Bugfix - caches weren't getting cleared/updated on publish.