keycdn / cache-enabler

A lightweight caching plugin for WordPress that makes your website faster by generating static HTML files.
https://wordpress.org/plugins/cache-enabler/
123 stars 46 forks source link

option to cache sitemaps and feeds #156

Closed janvitos closed 4 years ago

janvitos commented 4 years ago

Hi,

I noticed the plugin does not cache sitemaps or feeds. I think there should be an option to enable sitemap and feed caching since generating sitemaps and feeds for big sites with many posts can take a long time and consume valuable server resources when they are accessed.

It would definitely help if there was an option or a filter to enable sitemap and feed caching. The sitemap and feed cache would also need to be purged when a post is created or trashed.

Please let me know if you need further clarification. I am open to discussion about the proposed enhancement.

Thank you.

janvitos commented 4 years ago

Hi,

I decided to close this ticket because caching sitemaps and feeds might not be so important after all since they need to be purged every time a post is updated / trashed / created.

On a website where content is created and changed all the time, this means cache for sitemaps and feeds would be constantly cleared and the feature would be relatively useless.