abdulhannanali / fascinations-of-hannan

Hannan's Fascination Blog
MIT License
1 stars 0 forks source link

Add diff optimization to Purge Script #2

Open abdulhannanali opened 7 years ago

abdulhannanali commented 7 years ago

Right now, the Purge script in the directory scripts/purge/index.js parses the sitemap sitemap.xml and purges all the URLs without performing any diff operation over them, which leads, to a lot of inefficiency as the URLs which don't have any change in the content are also purged from the cache.

This issue proposes to entertain a diff approach for the url which compares the recent build with the already there site in the cache. This way, we would only need to purge the urls which have a change in content, making the site even more efficient.