DEV Community

Tech Lite
Tech Lite

Posted on

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!