Disable cache folder while Rasa train

Hey, Is there a way to disable the cache folder while we train the models? as in my case, with the versioning i have got, the cache is not used and thus i have a new cache being created for each retrain and since i retrain in server, my cache folder is growing in size.

I am using Rasa 3.0.4

1 Like

Hi @souvikg10, you can set a maximum size for the cache via an environment variable RASA_MAX_CACHE_SIZE (see here). Setting it to 0 will prevent the cache being created (via this function). So

RASA_MAX_CACHE_SIZE=0 rasa train

should give what you want.

1 Like

@souvikg10 Can you provide an example of how to you were able to disable caching?