wp-heartbeat-notify icon indicating copy to clipboard operation
wp-heartbeat-notify copied to clipboard

Fails when transients are stored in memcache

Open goodevilgenius opened this issue 10 years ago • 1 comments

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 );

goodevilgenius avatar May 21 '14 15:05 goodevilgenius

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:

micc83 avatar May 22 '14 07:05 micc83