• Resolved davidki

    (@davidki)


    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 1 year, 4 months ago by davidki.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Anh Tran

    (@rilwis)

    Hi @davidki ,

    Thanks for your feedback.

    1. We’ve just pushed a commit that prevent the plugin from generating rewrite rules if no post types or taxonomies.

    2. That is a transient, which has an expiry time = 1 day. It will be automatically cleared after one day.

    Also, to disable the news from Slim SEO, add this snippet to your theme/plugin:

    add_filter( 'slim_seo_dismiss_dashboard_widget', '__return_true' );
    Thread Starter davidki

    (@davidki)

    Hello,
    the latest version 3.22.2 correctly not generate rewrite rules for sitemaps if no post types or no taxonomies.

    But what happened recently after updating to 3.22.2 was that, link to homepage is now presented in sitemap-post-type-page.xml and also in sitemap-post-type-post.xml

    Please, fix it,

    thank you,

    david

    Plugin Author Anh Tran

    (@rilwis)

    Hi David,

    We’ve fixed this bug in this commit and will release new version soon.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Optimization of wp_options’ is closed to new replies.