US patent US12804052
Combined inline cache purging and periodic hard purging in a cache server
Abstract
A cache server maintains and updates purge request counters per resource to be purged and a captured counter value per cached resource initialized with a default value. The cache server tracks resources to be purged in a purge request table, where each entry indicates a resource(s) and a purge request counter that is updated on receiving a purge request indicating the resource(s). Upon receipt of a fetch request for a resource, the cache server determines how to fulfill the request by comparing the captured counter value and the current value of the counter (if any) corresponding to the resource to determine if the resource was cached before a purge request for the resource was received. If so, the cache server refreshes the cached resource and updates the captured counter value with the value of the counter from the table. The cache server also periodically performs hard purges as a background process to remove stale cached resources.