Permalink
Browse files

Increase the default refresh interval

Most sites using this aren't optimized for liveblogging to we should make an effort to reduce the load from this feature and increase the interval between polling (from 3s to 10s). This can be decreased via a filter.

Hosts everywhere will thank us.
  • Loading branch information...
1 parent 7330fcb commit 1d7244f84e06899d37bde9a3c68fc4d2f4f046f4 @mjangda mjangda committed Sep 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 liveblog.php
View
2 liveblog.php
@@ -41,7 +41,7 @@
const edit_cap = 'publish_posts';
const nonce_key = 'liveblog_nonce';
- const refresh_interval = 3; // how often should we refresh
+ const refresh_interval = 10; // how often should we refresh
const max_consecutive_retries = 100; // max number of failed tries before polling is disabled
const delay_threshold = 5; // how many failed tries after which we should increase the refresh interval
const delay_multiplier = 2; // by how much should we inscrease the refresh interval

0 comments on commit 1d7244f

Please sign in to comment.