We have hosted Sitecore 8.1 website on two server node1 and node2 where request redirection is handled by Load balancer. While deployment we delete App_config, Assets and Areas folder and copy-paste/replace all files so assuming we have same code on both server.
Still we are facing caching issue on node1 even configuration is same. While publishing every time we have to clear cache on node1 ( /sitecore/admin/cache.aspx
) because published content is not displayed on node1.
Don't have any issue on node2.
-----------------UPDATE 02/13------------------------
We have following patch files on both node
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<events timingLevel="custom">
<event name="publish:end">
<handler type="Sitecore.Publishing.HtmlCacheClearer, Sitecore.Kernel" method="ClearCache">
<sites hint="list">
<patch:delete />
</sites>
<sites hint="list">
<site>website1</site>
<site>website2</site>
</sites>
</handler>
</event>
<event name="publish:end:remote">
<handler type="Sitecore.Publishing.HtmlCacheClearer, Sitecore.Kernel" method="ClearCache">
<sites hint="list">
<patch:delete />
</sites>
<sites hint="list">
<site>website1</site>
<site>website2</site>
</sites>
</handler>
</event>
</events>
</sitecore>
</configuration>
App_Config/Include/ScalabilitySettings.config
. Specifically, please let me know how you are handling the Sitecore Setting InstanceName on each node server.