Skip to content

Commit

Permalink
Remove cache buster
Browse files Browse the repository at this point in the history
  • Loading branch information
avgupta456 committed Nov 26, 2024
1 parent 720d340 commit cb76cde
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions backend/src/aggregation/layer1/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import requests

from src.aggregation.layer0.package import get_user_data
from src.constants import API_VERSION, BACKEND_URL, PROD
from src.constants import API_VERSION # , BACKEND_URL, PROD
from src.data.github.graphql import GraphQLErrorRateLimit
from src.data.mongo.secret import update_keys
from src.data.mongo.user_months import UserMonth, get_user_months, set_user_month
Expand Down Expand Up @@ -114,9 +114,10 @@ async def query_user(
out.incomplete = incomplete

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

return (False, out)

Expand Down

0 comments on commit cb76cde

Please sign in to comment.