Disable Caching for Organization Service In CRM 2011/2013/2015

MS CRM has caching feature but sometimes you want to disable it to get the latest updates,two ways to disable caching
First way - Configuration

Add the following configuration block to the config file of your application

<configSections>

<sectionname="microsoft.xrm.client"type="Microsoft.Xrm.Client.Configuration.CrmSection, Microsoft.Xrm.Client"/>

</configSections>

<microsoft.xrm.client>

<contexts>

<addname="Xrm"type="Xrm.XrmServiceContext, Xrm"serviceName="Xrm"/>

</contexts>

<services>

<addname="Xrm"type="Microsoft.Xrm.Client.Services.OrganizationService, Microsoft.Xrm.Client"/>

</services>

</microsoft.xrm.client>
Second Way - Pragmatically

Microsoft.Xrm.Client.Caching.ObjectCacheManager.GetInstance().Clear();