• Resolved paktas

    (@paktas)


    Dear Community,

    we’ve created an RSS plugin, that creates new feeds. We are struggling to NOT cache a feed.

    We have an option set for:

    Don’t cache the following dynamic contents: “Feeds (is_feed) – (recommended)
    Screenshot: https://ibb.co/ry1WbMP

    However, the feeds are still getting cached by Cloudflare with cf-cache-status: HIT

    We tried adding declaration to the newly created RSS feed $wp_query->is_feed = true;, but it does not help – still caching feeds on CF.

    Please advice on how to remove non-native feeds from caching?

    • This topic was modified 1 year, 4 months ago by paktas.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter paktas

    (@paktas)

    Would the plugin recognize the feeds if they are created/registered with add_feed function?

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @paktas,
    The plugin checks the value of is_feed() to decide whether to bypass the cache or not.

    Can you share the response header of your feed URL? So that I can see what’s going on?

    Thread Starter paktas

    (@paktas)

    So we adjusted our custom feed plugin so it creates new feeds with add_feed function and now it’s fine – is_feed() check returns true.

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @paktas,
    That’s great news. So now cache is being bypassed for the feed pages as you wanted?

    Thread Starter paktas

    (@paktas)

    Yes it is bypassed.

    It would be great to have the tooltip indication of is_feed() behaviour and in which cases it’s returning true/false.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘NOT caching a feed’ is closed to new replies.