Skip to content

Instantly share code, notes, and snippets.

@michaellwest
Created May 16, 2015 22:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaellwest/b4352327d13447c427cf to your computer and use it in GitHub Desktop.
Save michaellwest/b4352327d13447c427cf to your computer and use it in GitHub Desktop.
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