Optimization of wp_options | WordPress.org

[ad_1]

Hello,

I am trying to optimize wordpress database ispecially wp_options table. I found that your plugin Slim Seo, adds these in wp_options:

1. rewrite_rules

You add rewrite rule for sitemap with this code:

add_rewrite_rule( 'sitemap-(taxonomy-[^/]+?)\.xml$', 'index.php?ss_sitemap=$matches[1]', 'top' );

I removed all taxonomies from the sitemap with filter

add_filter('slim_seo_sitemap_taxonomies', '__return_empty_array');

Please, add some possibility for users that don’t use taxonomies in sitemap, so they can remove the rewrite rule for “sitemap-taxonomy”. Maybe with some condition for addying this rewrite rule or add some filter.

2. _transient_slim-seo-news

Please, add possibility to prevent the creation of this transient. I don’t want to have this in my wp_options.

If there is a way to prevent the creation of this transient, please advice how to do that. I don’t find anything in plugin documentation.

Thank you,

david

  • This topic was modified 7 hours, 1 minute ago by davidki.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer