micc83 / wp-heartbeat-notify

Based on WordPress 3.6 heartbeat API, Wp Hearbeat Notify, display a realtime custom message to your visitor each time a new post is published with a link redirecting to it. Still in beta version, this plugin has been full tested only on WordPress 3.6-beta3.
51 stars 10 forks source link

Fails when transients are stored in memcache #3

Open goodevilgenius opened 10 years ago

goodevilgenius commented 10 years ago

send_data_to_heartbeat assumes transients are stored in the database, but when memcache is available, it's used instead, so this fails:

$sql = $wpdb->prepare(
    "SELECT * FROM $wpdb->options WHERE option_name LIKE %s",
    '_transient_' . $this->args['domain'] . '_%'
);

$notifications = $wpdb->get_results( $sql );
micc83 commented 10 years ago

Hi @goodevilgenius thank you for pointing it out but as i wrote in the docs this is no more than an experiment to start playing with wp heartbeat. Sooner or later i'll made an actual plugin out of it but at the moment i really have no time to spend on this project :unamused: