I have 2 CD and 2 CM servers. Whenever I add version and publish it, on the frontend only showing the previous versions except I recycle pool on all CD servers or I implement Clear all cache on each server (Similiar to /sitecore/admin/cache.aspx: Clear)
I've tried clearing html cache and Rendering parameter cache but they don't solve the problem.
Also I've tried this too (on each server) but still won't help:
db.Caches.DataCache.RemoveItemInformation(item.ID);
db.Caches.DataCache.Remove(item.ID);
db.Caches.StandardValuesCache.RemoveKeysContaining(item.ID.ToString());
db.Caches.PathCache.RemoveKeysContaining(item.ID.ToString());
db.Caches.ItemCache.RemoveItem(item.ID);
The only workaround is clearing ALL cache on each server :
foreach (var cache in CacheManager.GetAllCaches())
{
if (cache != null)
{
cache.Clear();
}
}
But I think that's too expensive, right? So, which cache should I clear? (refer to caches name on /sitecore/admin/cache.aspx)
Without above code and manual clearing, everything works fine in local server, or single server
I'm using EventQueue to trigger local events on each server. Using Sitecore 8.2 Initial Release