Page MenuHomeSoftware Heritage

settings/production: do not configure memcache if cache_uri is unset
ClosedPublic

Authored by douardda on Jul 3 2019, 10:50 AM.

Details

Summary

this is needed so we can spawn a production-like webapp (in docker)
without a memcache (makes documentation writing easier).

Diff Detail

Repository
rDWAPPS Web applications
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

ardumont added inline comments.
swh/web/settings/production.py
26–32

Shouldn't this be less strict (using dict's get method instead)?

do not presume 'throttling.cache_uri' config exists

This revision is now accepted and ready to land.Jul 3 2019, 11:02 AM
This revision was automatically updated to reflect the committed changes.