Commit dcf17298 authored by Aaron Harder's avatar Aaron Harder

Allow s3 cache to be disabled with configuration setting

parent e939487d
......@@ -11,6 +11,10 @@ module.exports=function s3BackedRenditions(config, $){
var s3conf = _.get($, confPath);
var timeOfLastEmailError = new Date(1971,4,15,11,30);
if(s3conf.disable){
return null;
}
if(!s3conf){
throw new Error(`'${pluginId}' plugin installed, but missing needed config at: ${confPath}`)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment