Hello,
I would like a clarification about when purged cache files get deleted.
By reading this: https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:cache-storage
I see that "When LSWS receives a purge request, it will simply mark the related cached objects as dirty. In order to avoid heavy disk operation, it does not delete the actual cache files on disk."
And then, "LSWS will check periodically (triggered by a timer) for expired cache entries based on the entries' defined TTLs. LSWS will select a list of entries based on LRU, and delete the related cache files on disk."
But, it says: "The clean-up process is based on TTL only, it does not check for purge events."
So, to clarify. cache entries that reach their end of life, get deleted automatically periodically.
But what about cache entries that have been purged via a Purge instruction? (such as "Purge All" or purge certain specific ones)
Does that mean that cache entries that have been purged via a purge instruction, will never get deleted from the storage?
Or they do get deleted, but they still have to wait for their original TTL before getting deleted?
At the end of the wiki page it does say:
"When you press the Purge All button, you will not see the cache storage folder get emptied. You don't have to worry about the actual files on disk. LSWS takes care that for you constantly and quietly behind the scenes."
But this phrase kind of collides with "The clean-up process is based on TTL only, it does not check for purge events." which seems to imply that purge events are not taken care by the clean-up process...
So I'm a bit confused as how this works. Could you please clarify?
TLDR: Do cache files purged via purge events get ever deleted from storage? If so, when?
Thanks!
I would like a clarification about when purged cache files get deleted.
By reading this: https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:cache-storage
I see that "When LSWS receives a purge request, it will simply mark the related cached objects as dirty. In order to avoid heavy disk operation, it does not delete the actual cache files on disk."
And then, "LSWS will check periodically (triggered by a timer) for expired cache entries based on the entries' defined TTLs. LSWS will select a list of entries based on LRU, and delete the related cache files on disk."
But, it says: "The clean-up process is based on TTL only, it does not check for purge events."
So, to clarify. cache entries that reach their end of life, get deleted automatically periodically.
But what about cache entries that have been purged via a Purge instruction? (such as "Purge All" or purge certain specific ones)
Does that mean that cache entries that have been purged via a purge instruction, will never get deleted from the storage?
Or they do get deleted, but they still have to wait for their original TTL before getting deleted?
At the end of the wiki page it does say:
"When you press the Purge All button, you will not see the cache storage folder get emptied. You don't have to worry about the actual files on disk. LSWS takes care that for you constantly and quietly behind the scenes."
But this phrase kind of collides with "The clean-up process is based on TTL only, it does not check for purge events." which seems to imply that purge events are not taken care by the clean-up process...
So I'm a bit confused as how this works. Could you please clarify?
TLDR: Do cache files purged via purge events get ever deleted from storage? If so, when?
Thanks!