Created
May 16, 2015 22:14
-
-
Save michaellwest/b4352327d13447c427cf to your computer and use it in GitHub Desktop.
List Sitecore renderings and determine if cacheable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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