I just come into a strange problem. I used to run ...
# ask-community
l
I just come into a strange problem. I used to run
rm -rf ~/.prefect/storage/*
to clear cache so that the task would run again next time. But I find it won't work this time and I have to clean the whole
~/.prefect
directory instead of just storage to make it work. Is this a bug or I just miss something? Does prefect provide some command line interface to clear cache?
1
👀 1
And now I found that
~/.prefect/storage
won't be recreated and now cache seems not work anymore.
k
I’m asking my team. Will get back to you on this
Starting from 2.6 you can now use either a custom storage block for results or entirely disable persistence https://docs.prefect.io/concepts/results/. This mean that you can choose to save your result in a custom storage or save it in memory
l
Thank you. But the problem I have now is after I remove everything in
~/.prefect
and the cache cannot be created any more.
k
Hmm that shouldn’t happen. Can you run
Copy code
prefect config view
and paste the output here?
l
prefect config view PREFECT_PROFILE='default'
and the version of perfect is 2.6.4 by the way
k
What did you do to test whether the cache is created?