Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #23216, comment 38


Ignore:
Timestamp:
01/29/2013 06:21:30 PM (12 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23216, comment 38

    initial v1  
    1414In that terms `wp.heartbeat.interval()` should probably accept two int arguments, first is the interval in seconds, second would be for how many "beats" (optional, default 10?). Then we can protect a lower value for the interval so plugins don't stomp each other.
    1515
    16 Another possibility is to have three values: fast(5), normal(15), slow(30). Then setting it to `slow` will only be possible if the current value is `normal`, and setting `fast` will look into the second argument: for how long/how many "beats", and will revert to `normal` after that.
     16Another possibility is to have three values: fast(5), medium(15), slow(30). Then setting it to `slow` will only be possible if the current value is `normal`, and setting `fast` will look into the second argument: for how long/how many "beats", and will revert to `medium` after that.