Understanding the benefits of :cache

I might have missed this in the documentation, but can I know other benefits do I get by having the :cache storage set up vs skipping :cache.

One benefit that I see from the docs is that it’s useful for direct uploads.

If I’m not doing direct uploads (yet) - what other benefits do I get?

Janko explained some reasons in his Async File Uploads article - it has more to do with asynchronous file uploads than direct uploads to S3 or other cloud storage.

It essentially comes down to how you want to manage your system. You can think about backups costs, file migration, cleaning up abandoned uploads, separation of good vs unverified files, bad files (virus/image bombs), etc. Having a separated :cache and :store buckets simplifies this although there’s nothing preventing you from achieving this through various scripts/background jobs in a single storage strategy.


Currently our implementation is just synchronous upload - but I guess this :cache setup would help in the long run - so we’ll keep to having :cache around.