Running in all the servers.
Add-PSSnapin "Microsoft.SharePoint.PowerShell"
$webApp = Get-SPWebApplication http://ServerName.com
[Microsoft.SharePoint.Publishing.PublishingCache]::FlushBlobCache($webApp)
Write-Host "Flushed the BLOB cache for:" $webApp
Add-PSSnapin "Microsoft.SharePoint.PowerShell"
$webApp = Get-SPWebApplication http://ServerName.com
[Microsoft.SharePoint.Publishing.PublishingCache]::FlushBlobCache($webApp)
Write-Host "Flushed the BLOB cache for:" $webApp
No comments:
Post a Comment