Opened 15 years ago
Closed 15 years ago
#9163 closed enhancement (invalid)
SitecoreStager Cache Clear Improvement
Reported by: | Owned by: | Urvesh Vekariya | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | general | Version: | |
Severity: | critical | Keywords: | SitecoreStager, Cache |
Cc: | urvesh.vekariya@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Hi,
We are using Sitecore Stager for Partial Cache Clear. We are having 8 production servers. So, whenever any item(s) is published, it is clearing cache on each servers. But the issue is it clears the cache before item is published for some cases.
So, for enhancement we have updated "CleanupRunner" method in PublishManager.cs. After updation, it always checks Publishing Queue and once Queue is fully cleared at that time only it starts cache clear. This means, if 3 jobs are in publish, e.g. X, Y & Z. It will start cache clear once all the 3 jobs are completed and changes will not get reflected until all jobs are processed. Please find the updated file as an attachment.
So, can you please let us know whether the updates done is right or not? Can we enhance it so once a single publishing job is completed it starts cache clear for the same instead of waiting for other jobs to get completed? Here, we want some real and independent option for cache clear.
Also, as it requests cache clear one by one on each server, can we enhance it so it requests cache clear on all at once?
Thanks and Regards,
Urvesh
Sitecore Stager Publish Manager class