Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cb76cde

Browse files
committed
Remove cache buster
1 parent 720d340 commit cb76cde

File tree

1 file changed

+5
-4
lines changed
  • backend/src/aggregation/layer1

1 file changed

+5
-4
lines changed

‎backend/src/aggregation/layer1/user.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import requests
66

77
from src.aggregation.layer0.package import get_user_data
8-
from src.constants import API_VERSION, BACKEND_URL, PROD
8+
from src.constants import API_VERSION # , BACKEND_URL, PROD
99
from src.data.github.graphql import GraphQLErrorRateLimit
1010
from src.data.mongo.secret import update_keys
1111
from src.data.mongo.user_months import UserMonth, get_user_months, set_user_month
@@ -114,9 +114,10 @@ async def query_user(
114114
out.incomplete = incomplete
115115

116116
if incomplete or len(new_months) > 1:
117-
# cache buster for publisher
118-
if PROD:
119-
s.get(f"{BACKEND_URL}/user/{user_id}?no_cache=True")
117+
# TODO: figure out why this causes an infinite loop
118+
# # cache buster for publisher
119+
# if PROD:
120+
# s.get(f"{BACKEND_URL}/user/{user_id}?no_cache=True")
120121

121122
return (False, out)
122123

0 commit comments

Comments
 (0)