OpenOversight
OpenOversight copied to clipboard
Cache csv downloads
In https://github.com/lucyparsons/OpenOversight/pull/735 @redshiftzero suggested to add caching to the csv downloads. Specifically to download_dept_officers_csv
, download_dept_assignments_csv
and download_incidents_csv
.
Things to consider:
- Which library to use for caching
- Cache invalidation (whether and how to deleted the cached csv file if the underlying data changes)
- Cache expiration (how long to keep the cached data)
related to https://github.com/lucyparsons/OpenOversight/issues/242