Skip to content

Commit c55d760

Browse files
authored
write parent if it doesn't exist for cached procedure (#5680)
1 parent 604c868 commit c55d760

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

reflex/utils/decorator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def wrapper(*args: P.args, **kwargs: P.kwargs) -> T:
7676
def _write_cached_procedure_file(payload: str, cache_file: Path, value: object):
7777
import pickle
7878

79+
cache_file.parent.mkdir(parents=True, exist_ok=True)
7980
cache_file.write_bytes(pickle.dumps((payload, value)))
8081

8182

0 commit comments

Comments
 (0)