prince1604 commited on
Commit
f730cd8
·
1 Parent(s): 14aaae8

Disabled API cache to force fresh results with updated analyzer logic (short alt merged into poor)

Browse files
Files changed (1) hide show
  1. api.py +4 -3
api.py CHANGED
@@ -62,9 +62,10 @@ def get_seo_report():
62
  if cached_item:
63
  timestamp, data = cached_item
64
  # 600 seconds = 10 minutes
65
- if time.time() - timestamp < 600:
66
- print(f"Returning Cached Result for {domain}")
67
- return jsonify(data)
 
68
 
69
  try:
70
  print(f"Starting live scan for: {domain}")
 
62
  if cached_item:
63
  timestamp, data = cached_item
64
  # 600 seconds = 10 minutes
65
+ # DISABLE CACHE TEMPORARILY to ensure fresh code logic is used
66
+ # if time.time() - timestamp < 600:
67
+ # print(f"Returning Cached Result for {domain}")
68
+ # return jsonify(data)
69
 
70
  try:
71
  print(f"Starting live scan for: {domain}")