I have a site where I am using phpthumbof and picturefill.js to generate responsive and retina ready images from template variables.
The idea is that the user uploads only the largest image needed, then phpthumb generates all the smaller images for picturefill. Once the cache is created for all the images it works gangbusters, however, it takes a LONG time to create the cache on some pages.
My issue is when someone enters content for a resource, then save with the "Empty Cache" checkbox enabled, it clears all of the site cache including my images, which then have to be regenerated.
My question is if it's possible to selectively clear cache in a way that would not clear the phpthumb cache unless directly told to.
Some ideas are:
- Figure out a way to remove phpthumb from the overall clear cache function and split it off into a "Clear phpthumb" type of thing.
- Create a plugin that clears the cache for only a specific resource when that resource is saved (would need to clear phpthumb cache if image tvs are used in the resource).
Any other ideas that would work better? Any way to implement any of this?
Thanks,
Roger
MODX 2.2.4-pl
[ed. note: [email protected] last edited this post 13 years, 8 months ago.]