Output Cache Configuration in SharePoint 2013

In SharePoint 2013, you can configure the output of the Page based on the kind of users accessing the site. We can configure wo two versions of the Caches for Authenticated Users Or Anonymous Access. Below are the PowerShell Commands to configure OutPage Caching.
 
   
 
  1. [System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint.Publishing”)  

  2. $cachesettings = new-object Microsoft.SharePoint.Publishing.SiteCacheSettingsWriter($Url);  

  3. $cachesettings.EnableCache = $true;  

  4. $cachesettings.Update();