Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adds Caching to the scan_id page for 5 minutes.

  • Loading branch information...
commit 5c7ecdc62b85b476c8b34439e88e7a0971e21123 1 parent 3a81157
@sudorandom sudorandom authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  cargoscanner.py
View
1  cargoscanner.py
@@ -491,6 +491,7 @@ def estimate_cost():
@app.route('/estimate/<int:scan_id>', methods=['GET'])
+@cache.cached(timeout=600)
def display_scan(scan_id):
scan_results = load_scan(scan_id)
error = None
Please sign in to comment.
Something went wrong with that request. Please try again.