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.

Comments

drewish’s picture

Version: 5.x-2.2 » 6.x-2.x-dev
Status: Needs review » Needs work

this would need to happen in the D6 version and then be backported to D5.

tomchuk’s picture

StatusFileSize
new787 bytes

Same patch applies against 6.x-2.x-dev with some offset. Here it is against 6.x-2.x-dev

drewish’s picture

This looks like a great addition, sorry it got ignored. The one thing that it needs is documentation of the hooks in imagecache.api.php.

tomchuk’s picture

StatusFileSize
new2.28 KB

Sorry, 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.

mikeytown2’s picture

Status: Needs work » Needs review

quick glance; code looks good.
subscribe from here #1043072: support imagecache preset flush and delete operations

mikeytown2’s picture

StatusFileSize
new2.94 KB

Here's a patch that passes along more info. I need the extra info in order to flush things correctly.

mikeytown2’s picture

StatusFileSize
new2.93 KB

fixed typos in the api file.

drewish’s picture

Status: Needs review » Fixed
StatusFileSize
new2.45 KB

Changed some variable names and reworded some of the docs.

Committed to 6.x-2.x.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.