Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
List Sitecore renderings and determine if cacheable
# http://www.layerworks.com/blog/2015/4/17/sitecore-powershell-script-examples
$VerbosePreference = "continue"
$path = "master:/sitecore/layout/renderings"
Write-Log "Get all renderings and determine if caching is enabled."
Get-ChildItem -Path $path -Recurse |
Where-Object { $_.TemplateName -ne "Rendering Folder" } |
Format-Table -AutoSize -Property Name, ItemPath, ID, @{"Name"="Cacheable";"Expression"={$_.Cacheable -eq "1"}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment