DEV Community

Tech Lite
Tech Lite

Posted on

3 2

Django caching

Caching is faster when it is small amount and since caching is done in a memory like RAM in programming. But i came across this caching in file system. Since the operation in file system is slow why would we cache in file system. FYI, there is this option of caching in file system in Django. Am i reading it in some wrong way or something. Help me. I might have the wrong concept of caching too i think. Anybody can enlighten me here?

Top comments (2)

Collapse
 
stunaz profile image
stunaz

Cause you might not be able to cache in memory, or your memory capacity is limited. You could cache in file if your long-operation takes longer than just retrieving from file.

Collapse
 
thetechlite profile image
Tech Lite

hmm.....i think i got it what you mean!

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay