Understanding garbage collection
-
I understand that page garbage collection interval is the time that determine how frequently expired cached pages are removed. But It is not clear how it works exactly.
This is how I think it works (probablly I’m wrong):
1.- A page is requested, the static file is created for next request.
2.- The cached page is valid until the expire time.
3.- When the cached page is not valid, the name file is appended with “.old” and a new one is created.
4.- Garbage collection removes all files containing “.old” in the nameIs this how it works? If so, I could set a very high garbage collection interval without affecting the cache building proccess. The only drawback would be a lot of disk space wasted in “.old” files but my server is plenty of free space, so it is not important to me and I could liberate the resources needed for the garbage collection.
Am I right or the garbage collection proccess also check if cached files are valid?
- The topic ‘Understanding garbage collection’ is closed to new replies.