Skip to content

Commit

Permalink
chore: add board type + libraries to cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
sverben committed Feb 6, 2024
1 parent f89dc90 commit 7ea0d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async def compile_cpp(sketch: Sketch, session_id: Session) -> dict[str, str]:

try:
# Check if this code was compiled before
cache_key = get_code_cache_key(sketch.source_code)
cache_key = get_code_cache_key(sketch.model_dump_json())
if compiled_code := code_cache.get(cache_key):
# It was -> return cached result
return compiled_code
Expand Down

0 comments on commit 7ea0d0d

Please sign in to comment.