When fetching CORS rules from S3, it takes ~1s to get the rules, which will add up a lot over lots of upload requests. This commit introduces a 1 day cache of the bucket CORS rules. This cache is broken whenever there are new rules not already in the existing rule set from the cache, and is initially set when we fetch the rules from S3 for the bucket. Getting the cached rules from redis takes ~0.000265s, so it's a huge improvement over going to S3 every time. |
||
|---|---|---|
| .. | ||
| components | ||
| fabricators | ||
| fixtures | ||
| helpers | ||
| import_export | ||
| initializers | ||
| integration | ||
| integrity | ||
| jobs | ||
| lib | ||
| mailers | ||
| models | ||
| multisite | ||
| requests | ||
| script/import_scripts | ||
| serializers | ||
| services | ||
| support | ||
| tasks | ||
| views/omniauth_callbacks | ||
| rails_helper.rb | ||
| swagger_helper.rb | ||