3 ms·
> continuously serialize WP to static files Any cache plugin for WordPress does this already, but if you mean something that does this in order to host elsewhe
by marc_io 6y ago
> continuously serialize WP to static files
Any cache plugin for WordPress does this already, but if you mean something that does this in order to host elsewhere (like in Netlify), WP2Static is a solution.
- hardwaresofton 6y agoAh thank you -- WP2Static is something I didn't know about. Do some cache plugins actively walk your site and generate the pages? How do they handle when user login plugins are present? I'd expect a naive/basic caching plugin to add to the cache when a page was visited, not necessarily ahead of time.
- marc_io 6y agoThis depends on the plugin or cache system being used, but it can be done ahead of time, yes. Generally, the cache is created on the first visit and purged when a change occurs. Highly dynamic pages can be excluded from the cache by default, like the login or the cart page on an E-commerce website. Some solutions even allow to change the caching period for specific parts of the code, on the fly (fragment caching).