Sidreds06 commited on
Commit
a63133f
·
1 Parent(s): 81c40fc

caching updated

Browse files
Files changed (1) hide show
  1. tools/goal_tools.py +3 -0
tools/goal_tools.py CHANGED
@@ -95,6 +95,9 @@ def add_goal_tool(user_id: str, goal_name: str, goal_description: str, category_
95
  )
96
  print("INSIDE TOOL RESULT:", result, type(result))
97
 
 
 
 
98
  if isinstance(result, dict):
99
  # Convert datetime objects to strings for JSON serialization
100
  serializable_result = {}
 
95
  )
96
  print("INSIDE TOOL RESULT:", result, type(result))
97
 
98
+ from backend.cache_utils import clear_user_cache
99
+ clear_user_cache(user_id)
100
+
101
  if isinstance(result, dict):
102
  # Convert datetime objects to strings for JSON serialization
103
  serializable_result = {}