• Hi,

    After several attempts finally RSS feeds works, thanks to GN Publisher and this forum.

    I’ve successfully used this form of feed: https://www.hifipertutti.it/?category_name=hifi-news&feed=gn

    However, gnews is very slow updating new articles, i’ve added the following lines in functions.php to disable RSS cache:

    //disable rss feed cache
    
    function turn_off_feed_caching( $feed ) {
        $feed->enable_cache( false );
    }
    add_action( 'wp_feed_options', 'turn_off_feed_caching' );
    
    //DISABLE RSS FEED CACHE END
    
    //featured image in rss feed
    
    function featuredtoRSS($content) {
    global $post;
    if ( has_post_thumbnail( $post->ID ) ){
    $content = '<div>' . get_the_post_thumbnail( $post->ID, 'full', array( 'style' => 'margin-bottom: 15px;' ) ) . '</div>' . $content;
    }
    return $content;
    }
     
    add_filter('the_excerpt_rss', 'featuredtoRSS');
    add_filter('the_content_feed', 'featuredtoRSS');
    
    //END FEATURED IMAGE IN RSS FEED

    Any suggestion?

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 18 total)
  • Hi Gragu,

    I don’t think it’s a caching issue. The plugin has a built in system to inform caching plugins not to cache the feed, so the snippet you included in your functions.php file should be unnecessary.

    GN Publisher sends a ‘ping’ to Google’s feed fetcher to let it know when you have a newly published post. Google will check occasionally by itself, but the ping tells them you just published and they usually check the feed very quickly after receiving that.

    For some reason though, they aren’t getting the ping. It’s being sent to pubsubhubbub.appspot.com using wp_remote_post. But they aren’t receiving it.

    I haven’t heard of anyone having a firewall that affected the ping, or anyone disabling or interfering with wp_remote_post, but are you aware of anything on your system that might be doing that?

    Chris

    Thread Starter gragu

    (@gragu)

    Hi Chris, thanks for replay.

    No, i have no idea!
    My hosting uses litespeed as server side cache and quic.cloud CND, maybe this?

    p.s. the snippet is because i read wp has an internal rss cache, so i’ve tried it.

    Thread Starter gragu

    (@gragu)

    These are the active plugins

    screenshoot

    I don’t see anything there that stands out as a problem… if you look at GN Publisher on your plugins page, there will be an ‘info and tips’ link, click on that and scroll down to find the ‘last ping’, that should the time that the last ping was sent.

    I’m just not sure what could be blocking it…

    Thread Starter gragu

    (@gragu)

    The last ping is: Most Recent Update Ping Sent: 2021-10-15 11:58:11 +0100 (now here is 17:37).

    Should i try updadate some post and see if GN Publisher pings?

    It sent the ping when the post was published.

    It’s just not getting to Google…

    What we need is to display the response from the ping… I can include that in a future update, but that doesn’t help you in the here and now. Still pondering…

    Thread Starter gragu

    (@gragu)

    i can give you access to website if necessary

    I have to charge if I go into a site and start changing things.

    Let’s try this – I found a plugin that tests wp_remote_post, it’s at:

    https://plugin-planet.com/server-test-plugin/

    I tried it on my site and got green across the board. I’m not sure if it provides any diagnostic info if it fails to connect, but you might try it. Maybe that will help us narrow this down,

    Chris

    Thread Starter gragu

    (@gragu)

    Hi Chris, unfortunatly i get green wp_remote_post: Screenshot here

    Thread Starter gragu

    (@gragu)

    I use “onesignal push notification” to send notification for new post to the subscribers, it uses wp_remote_post, i’ll try to disable it on next post and see what happens.

    Thread Starter gragu

    (@gragu)

    So, i disebled auto send notifications on new posts, seems much betetr now, posted at 10:20, ping at 10:20, appears in gnews feed at 10:28.

    Interesting…. let me know what happens with your next publish, so we can see if that was a timing fluke or for real ??

    Thread Starter gragu

    (@gragu)

    Hi Chris,
    just plublished a new post, in about ten minutes it was on google news feed. So i think we can be pretty shure that “OneSignal Push Notification” interfer with google news crawler.
    I’ll contact them to report it.

    Thanks

    Giorgio

    I’m not sure if it’s interfering so much with the crawler as with some kind of conflict affecting the ping to Google. I’ll look into it from this end as well.

    Thanks for your work investigating this,

    Chris

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Crawling Delay’ is closed to new replies.