The D7 port patch I submited had a problem witch results in creating a download directory for each preset.
Since derivatives are handled by imagecache, there is no need to create a new directory to store the original image.
This patch resolves this issue and a case when drupal_http_request() returns no data.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | imagecache-directory-creation-1356648-3.patch | 1.41 KB | manu manu |
| imagecache-directory-creation.patch | 1.41 KB | manu manu |
Comments
Comment #1
7wonders commentedyou missed a closing bracket on line 124 with that patch.
Comment #2
manu manuThanks 7wonders,
Here is a correction.
Comment #3
summit commentedHi, would it also be possible to only cache on a hit?
greetings, Martijn
Comment #4
martysteer commentedThis patch works well for me too. Thankyou!
Comment #5
manu manu@Summit Not with the design of the current branch.
@martysteer Thanks, marking as RTBC
Comment #6
summit commentedHi,
After applying this patch I got for a lot of my nodes with a link-imagefield with imagecache external:
I see the imagecache/externals folder has Permission: 775. I can't change that manually.
Could this Notice have to do with this patch please?
Greetings and thanks for your reply, Martijn
Comment #7
BarisW commentedI think it would be a good thing to keep the $preset in the $directory. Else, the cached files are overwritten if you use several image styles to display the same image.
Rest of the patch is great, and solves my problem.
Comment #8
BarisW commentedAnd marking this major. Caching is the base of this module ;)
It solves #1508078: Files are recreated on every page load as well.
Comment #9
BarisW commentedRe #7: I think I was wrong. Image styles adds the preset by default. So it already works fine. Thanks for the patch, please commit!
Comment #10
manu manu@ Summit: I can't say... I use it on 500k entities and the errors I could see are related to 404, 503....
@ BarisW : ah great, you're saving me the time to jump into the code.
I'm not the module maintainer, i can't commit but sure @larowlan will have a look on this.
Comment #11
larowlanCommitted, thanks Barisw and manu manu