How to limit DiskCache plugin to a specific storage size?

118 views Asked by At

I am using the DiskCache plugin. Looking at the documentation, I see the AutoClean attribute says

If true, items from the cache folder will be automatically 'garbage collected' if the cache size limits are exceeded. Defaults to false.

Where are the cache size limits defined? I keep running out of my 10 gb of space on Azure websites. How can I limit to 8GB?

1

There are 1 answers

3
Lilith River On BEST ANSWER

Reduce the subfolders setting to restrict the number of files that are permitted. It's a stretchy limit based on the number of active files (I/O churn is very bad). The default limit is 400 * subfolders, the maximum is 1000 * subfolders.