My site is sitting behind Akamai, with images cached on the edge for 7 days. This works great, except manual intervention is required if a preset or image is flushed. I've added a couple of hook invocations to the preset and image flush functions so that my Akamai module can send a SOAP request to Akamai to clear the flushed images from the cache. I can imagine this would be useful for anyone running imagecache behind a reverse proxy with aggressive caching rules for images. Attached is a very simple patch.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | imagecache_354607.patch | 2.45 KB | drewish |
| #7 | imagecache-354607.patch | 2.93 KB | mikeytown2 |
| #6 | imagecache-354607.patch | 2.94 KB | mikeytown2 |
| #4 | imagecache_delete_hooks.patch | 2.28 KB | tomchuk |
| #2 | imagecache_delete_hooks.patch | 787 bytes | tomchuk |
Comments
Comment #1
drewish commentedthis would need to happen in the D6 version and then be backported to D5.
Comment #2
tomchuk commentedSame patch applies against 6.x-2.x-dev with some offset. Here it is against 6.x-2.x-dev
Comment #3
drewish commentedThis looks like a great addition, sorry it got ignored. The one thing that it needs is documentation of the hooks in imagecache.api.php.
Comment #4
tomchuk commentedSorry, I'm stuck in d5 land so am quite unfamiliar with *.api.php files, but have done my best in the attached patch. Applies against 6.x-2.x-dev from May 8.
Comment #5
mikeytown2 commentedquick glance; code looks good.
subscribe from here #1043072: support imagecache preset flush and delete operations
Comment #6
mikeytown2 commentedHere's a patch that passes along more info. I need the extra info in order to flush things correctly.
Comment #7
mikeytown2 commentedfixed typos in the api file.
Comment #8
drewish commentedChanged some variable names and reworded some of the docs.
Committed to 6.x-2.x.