elementor / wp2static

WordPress static site generator for security, performance and cost benefits
https://wp2static.com
The Unlicense
1.42k stars 270 forks source link

SuperCache cache sites got addtet to detection list #782

Open swtrse opened 3 years ago

swtrse commented 3 years ago

The problem here is that in DetectPostsPagionationURLs the post type "oembed_cache" is not excluded from the query. This results in URLs that does not exist on the site. For SuperCache the solution would be to exclude oembed_cachejust like nav_menu_item and revision. A more general approach would be so let configure an list of excluded post_types.

Sidenote: I forked this project (swtrse/wp2static) and did include all the changes to optimize this plugin to my needs. Maybe someone finds this useful.

leonstafford commented 3 years ago

Thanks, @swtrse! Will definitely take a look and aim to get these fixes into the separate WP URL Detection library I'm working on!