Skip to content

Instantly share code, notes, and snippets.

@stevewithington
Created April 25, 2016 14:30
Show Gist options
  • Save stevewithington/90111571321263925e15057d92befab3 to your computer and use it in GitHub Desktop.
Save stevewithington/90111571321263925e15057d92befab3 to your computer and use it in GitHub Desktop.
Mura CMS: Rebuild image cache or re-save images on redefined image sizes
<!--- Force Image Resave for All Images --->
<cfset application.serviceFactory.getBean('fileManager').rebuildImageCache(siteid='YOURSITEID')>
<!--- or to just reset a specific image size you can use --->
<cfset application.serviceFactory.getBean('fileManager').rebuildImageCache(siteid='YOURSITEID' ,size='YOURSIZE')>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment