Skip to content

Instantly share code, notes, and snippets.

@jsieber
Forked from stevewithington/muraRebuildImageCache.cfm
Created September 11, 2018 20:42
Show Gist options
  • Save jsieber/be6ef70c3988eb91c4963f6d7fc34931 to your computer and use it in GitHub Desktop.
Save jsieber/be6ef70c3988eb91c4963f6d7fc34931 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