Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
List Sitecore renderings and determine if cacheable
$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