aiosp_sitemap_daily_update_cron is clearing rewrite rules
-
After updating latest version last week, our website was showing 404 on all pages and posts suddenly after a specific time each day and when I digging into various plugins and custom made theme, I found out that “aiosp_sitemap_daily_update_cron” CRON JOB is clearing out “rewrite_rules” value in wp_options.
I have now disabled scheduled update of sitemap until the issue has been resolved.
Every time cron job runs, I sets rewrite_rules to BLANK and causing 404 on all pages, I have to reset permalinks and it fixes rewrite_rules in database and pages work fine.
On XML Sitemap settings page, if I click on “Update Sitemap” button, it again flushes out rules.
After looking into aioseop_sitemap.php
if ( ! $this->options[ “{$this->prefix}rewrite” ] ) {…} The code in this IF statment is not being run and it runs delete_transient( “{$this->prefix}rules_flushed” );I have not checked yet what $this->do_notify(); is doing.
Please look into this issue ASAP.
Regards,
Adeel
- The topic ‘aiosp_sitemap_daily_update_cron is clearing rewrite rules’ is closed to new replies.