Support » Plugin: MarketPress - WordPress eCommerce » MarketPress 2.5.1 Repeatedly Flushing Rewrites

  • Resolved ssmathias


    We ran into an issue with one of our clients using MarketPress Lite in which MarketPress would flush and regenerate the WordPress rewrite rules in every init.

    After some troubleshooting, we narrowed it down to the “install” function getting called every init, which adds an action to flush the rewrite rules. This occurs because it’s looking for the ‘mp_version’ value within the ‘mp_settings’ option, but never sets that key and instead only sets the option ‘mp_version’ in all future occurrences.

    I’ve attached a link to the patch I’ve created in our github mirror. It includes a simple diff to see what changes were necessary to occur. Changes to the version number and description in the header can be ignored, as these are used for our internal purposes.

    Patch for Install Check on Github

Viewing 1 replies (of 1 total)
  • Mike


    WPMU DEV Support Staff

    Hi @ssmathias

    You are awesome, thank you for finding this and suggesting a fix, I’ve reported this to the developer, he will look into this and hopefully make a comment on it soon.

    Thanks again!

Viewing 1 replies (of 1 total)
  • The topic ‘MarketPress 2.5.1 Repeatedly Flushing Rewrites’ is closed to new replies.