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

Preloading HTML Caching #182

Closed thegulshankumar closed 3 years ago

thegulshankumar commented 3 years ago

Dear,

An optional checkbox for XML Sitemap based Preloading would be great.

Slowly, to avoid overload on low-end server

Thanks & Regards, Gulshan

PepinoGz commented 3 years ago

Yes please, we need it!

davelit commented 3 years ago

You could use the Warm Cache plugin. However, I think WP_CRON based solutions are sub-optimal, as they increase the page load time until the cache is warm and current.

For system cron jobs, I can recommend Optimus Cache Prime, a hidden gem that hasn't received the recognition it deserves yet.

coreykn commented 3 years ago

We have no plans on adding this to Cache Enabler. I think using what has been suggested by @davelit are great options. If anyone else has others please feel free to share.

If this is still wanted once extensions are supported I'd be happy to help provide any guidance needed to add support for it in that way.

lockemx commented 1 year ago

OCP works well, but it would be seen as a non-webp client by default. Since I had the plugin's cache configured to vary / split for webp, I needed to make a custom build of OCP. It's a simple golang program with source available, so I mirrored how User-Agent is changed to also change the Accept header with a flag and specified "image/webp".