I have a question on clearing dispatcher cache as part of deployment.
Our maven build file uses curl process to deploy to authors and publisher instances and we have bamboo for continuous integration. There are TWO options as I see it for clearing dispatcher cache...
I believe both can & will be triggered on successful deployment ONLY.
Now, I need recommendations on which one is the right approach
if there is a third way which is recommended, pls do let me know.
/Kanwal
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
In both approaches you tie the cleaning of the cache to a run of a build tool. This might work for lower environments, but not for production systems. If you only do scheduled builds, you could also create a cron-job on the server (or any other scheduler-based approach) to clear the dispatcher cache.
Jörg
Views
Replies
Total Likes
I would go with option 1 as in principle you use maven to build the artifacts only once when you deploy on DEV and then for higher environments you should deploy the same built artifacts. Building the artifacts again is not recommended as you only want the verified and tested artifacts to be deployed on higher environments.
Views
Replies
Total Likes
Hi,
In both approaches you tie the cleaning of the cache to a run of a build tool. This might work for lower environments, but not for production systems. If you only do scheduled builds, you could also create a cron-job on the server (or any other scheduler-based approach) to clear the dispatcher cache.
Jörg
Views
Replies
Total Likes
I think rather than there being a best way, this is more something that works for you, your team and how you handle projects.
With my team, we do option #1 and on successful build we trigger a script to clear the cache - that said - it's only in staging. For production releases we do everything manually as there is a single point of failure (the person doing the release).
Views
Replies
Total Likes
Views
Likes
Replies
Views
Like
Replies