• Hi there,

    I have a client who likes BBP so much that they’re in the habit of including dozens of tweets in any given WordPress post. Unfortunately this slows down the page dramatically, because BBP connects to twitter and regenerates each tweet on page load. The following code change changed page loading time from 15-30 seconds to 2-5 seconds.

    === modified file 'wp-content/plugins/twitter-blackbird-pie/blackbird-pie.php'
    --- wp-content/plugins/twitter-blackbird-pie/blackbird-pie.php
    +++ wp-content/plugins/twitter-blackbird-pie/blackbird-pie.php
    @@ -193,6 +193,8 @@
                 if ($wp_query->in_the_loop) {
                     global $post;
                     $post_id = $post->ID;
    +            } else {
    +                $post_id = get_the_ID();
                 }
    
                 if ($post_id > 0) {

    I just thought I’d let you know. Thanks!
    Adam

    https://www.ads-software.com/extend/plugins/twitter-blackbird-pie/

  • The topic ‘Tweet cache is ignored on single post view’ is closed to new replies.