• Resolved Antony Booker

    (@antonynz)


    I noticed this plugin uses the heartbeat API. Can you provide details on what this plugin uses heartbeat for, as a user would be required to be logged in and waiting for heartbeat to run is it required? Is it just for the b2s_delete_sched_post action?

    It looks like this function fires when a post is trashed as well. If it is required could this be switched to a cron job instead? This would ensure it runs reliably in case a user logs out for example.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Blog2Social-Support

    (@blog2socialsupport)

    Hello,

    Thanks for reaching out.

    Please be so kind as to make sure that heartbeats is working properly on your website because WordPress and Blog2Social are working with heartbeats by default.

    Of course, you can deactivate or regulate heartbeats with plugins such as “Heartbeats Control” or “WP Rocket”. However, deactivating heartbeats prevents the background tasks of WordPress and Blog2Social from being executed properly.
    For instance, sharing posts automatically in your social media is blocked by the plugin “Heartbeat Control”. Please make sure that the plugin is not set to “disable everywhere”.

    It might occur that no heartbeat is sent between the time you publish your post on your blog and logging out if heartbeats are limited with the plugin “WP Rocket”. If you log in again, a heartbeat will be executed directly, which will send the data. Therefore, please do not limit heartbeats to make sure that your posts are shared automatically on your social media.
    However, if you want to regulate heartbeats anyway, you can do so without selectively deactivating the plugin:
    https://www.wpbeginner.com/plugins/how-to-limit-heartbeat-api-in-wordpress/

    Please let me know if you have any other questions.

    Thread Starter Antony Booker

    (@antonynz)

    Will the scheduled post also fire from a cron job in case an author closes the window?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘heartbeat api question’ is closed to new replies.