Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repeating "changes" from cronjob / IP filtering #772

Closed
lukecarbis opened this issue Oct 1, 2015 · 9 comments
Closed

Repeating "changes" from cronjob / IP filtering #772

lukecarbis opened this issue Oct 1, 2015 · 9 comments

Comments

@lukecarbis
Copy link
Contributor

Everytime my multsite cronjob runs (i.e. every 5 minutes), stream reports "blog_id" and "time" settings changed for each site. I've been trying to exclude those spurious mesasges via the filtering mechanism, but IP based filtering does not seem to work at all.

Reported here: https://wordpress.org/support/topic/repeating-changes-from-cronjob-ip-filtering

@mundschenk-at
Copy link

Should we split this into separate issues? I assume that the cron-caused messages are not directly involved with IP-based filtering.

@lukecarbis
Copy link
Contributor Author

@mundschenk-at Which cron is running which causes this? update_network_counts?

@lukecarbis
Copy link
Contributor Author

@mundschenk-at I have been able to fix the exclude issue, but I've not been able to replicate the addition extraneous reports. Can you help me to reproduce them?

lukecarbis pushed a commit that referenced this issue Nov 6, 2015
Bugfix #772: Multisite issues
@mundschenk-at
Copy link

@lukecarbis It's a custom multisite cronjob that call's wp-cron.php from a shell script.

@lukecarbis
Copy link
Contributor Author

@mundschenk-at In that case I'll leave it to you to figure out why it's changing the blog_id and time. The exclude rules problem should now be fixed.

@mundschenk-at
Copy link

@lukecarbis It's custom in so far ihat it calls wp-cron.php for each site in the multisite network (with define(‘DISABLE_WP_CRON’, true)), but that's all just using standard WP functionality. I don't think the mechanism (via a real cronjob or on every page load) of calling wp-cron.php should matter much here.

@lukecarbis
Copy link
Contributor Author

I'd say it would be related to one of the cron jobs that are running. Are any custom? You can use Debug Bar with a Debug Bar Cron add-on to see which cron jobs are scheduled. I've tried running all the default cron jobs and I can't replicate.

@mundschenk-at
Copy link

@lukecarbis Not custom as in made by me, but of course various events by several different plugins are scheduled. However, while I've been able to trigger the bug on a site with very few plugins by manually triggering an event via the plugin WP Crontrol, it's not been repeatable (and the calls don't appear totally regularely), so there seems to be some kind of race condition. Could these messages be triggered by some combination of calls to switch_to_blog?

@lukecarbis
Copy link
Contributor Author

@mundschenk-at Yes, that could make sense. If you're able to replicate the issue, let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants