mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-06 11:13:21 +02:00
Add cache time
This commit is contained in:
parent
d6201fc31f
commit
a4c4bba610
1 changed files with 3 additions and 0 deletions
|
@ -100,8 +100,11 @@ def available(request, domain=""):
|
|||
return json_response
|
||||
|
||||
|
||||
|
||||
@require_http_methods(["GET"])
|
||||
@login_not_required
|
||||
# Since we cache domain RDAP data, cache time may need to be re-evaluated this if we encounter any memory issues
|
||||
@ttl_cache(ttl=600)
|
||||
def rdap(request, domain=""):
|
||||
"""Returns JSON dictionary of a domain's RDAP data from Cloudflare API"""
|
||||
domain = request.GET.get("domain", "")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue