In a distributed environment, where files are uploaded to one server, but served off others via cloudfront, it is nice to have the option to not have those other slave servers have to have images files on their filesystem.

There should be a configuration option that turns off the check for files missing from the file system when we are building the cloudfront image url.

CommentFileSizeAuthor
#3 572764.patch1.47 KBmooreds
#2 572764.patch1.47 KBmooreds
#1 572764.patch1.37 KBmooreds

Comments

mooreds’s picture

Status: Active » Needs review
StatusFileSize
new1.37 KB

Attached is a patch that adds a config option to the cloudfront action screen. If checked, the module will not look for files on the filesystem before serving from cloudfront.

Note that this probably implies changes to the publishing process to process the cloudfront queue before publishing a photo.

mooreds’s picture

StatusFileSize
new1.47 KB

Here's a better version of this patch that works when cloudfront is not the first preset in the imachecache action.

mooreds’s picture

StatusFileSize
new1.47 KB

OK, here's a slightly different variation that really should work.