Skip to content
This repository has been archived by the owner on Jul 25, 2018. It is now read-only.

Commit

Permalink
Removed cache hit/miss debug messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
Drew Vogel committed Oct 18, 2011
1 parent ddc750e commit f02981c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions duns/views.py
Expand Up @@ -195,7 +195,6 @@ def search_by_duns(duns_number):
def lookup_by_name(request, entity_name):
cache_key = quote(entity_name.upper())
duns_list = cache.get(cache_key)
print "%s cache %s" % (cache_key, "hit" if duns_list else "miss")
if duns_list is None:
duns_list = search_by_name(entity_name)
if duns_list is None:
Expand All @@ -211,7 +210,6 @@ def lookup_by_name(request, entity_name):
def lookup_by_duns_number(request, duns_number):
cache_key = quote(duns_number)
name_list = cache.get(cache_key)
print "%s cache %s" % (cache_key, "hit" if name_list else "miss")
if name_list is None:
name_list = search_by_duns(duns_number)
if name_list is None:
Expand Down

0 comments on commit f02981c

Please sign in to comment.