ALL THE VENUE POSTS stored in post_meta DB are update_meta_cached

Home Forums Calendar Products Events Calendar PRO ALL THE VENUE POSTS stored in post_meta DB are update_meta_cached

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1304158
    Nicolas
    Participant

    Good evening,

    When a single event is published or updated, ALL THE VENUE POSTS stored in post_meta DB are update_meta_cached !

    // Get meta info
    $id_list = join(‘,’, $ids);
    $cache = array();
    $meta_list = $wpdb->get_results( $wpdb->prepare(“SELECT $column, meta_key, meta_value FROM $table WHERE $column IN ($id_list)”,
    $meta_type), ARRAY_A );
    $id_list = ALL VENUE IDs are included !!!

    Result –> LONG AND SLOW QUERY

    Two solutions :
    1. Trash all venue posts (sniff…)
    2. Prevent publish or save to update venue posts

    Could you help me shiftly please to prevent venues’ update thanks to a snippet please ?

    Best,

    Nicolas

    #1305858
    Nicolas
    Participant

    This reply is private.

    #1309835
    Victor
    Keymaster
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘ALL THE VENUE POSTS stored in post_meta DB are update_meta_cached’ is closed to new replies.