Support » Plugin: Super Page Cache for Cloudflare » Automatically purge single post

  • Resolved kinansy

    (@kinansy)


    Automatically purge single post cache when a new comment is inserted.
    this by default is set off.

    it seems like a good idea, why it is off ?

    do you have documentation that explain all the settings?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Saumya Majumder

    (@isaumya)

    By default, it is set to off because a lot of time people don’t need it (who have a wp site but not a blog). You can turn it on if you want to avail the feature. Each settings item has a small blurb of tech below it explaining what it does.

    Thread Starter kinansy

    (@kinansy)

    I imagine in LMS, when teacher publish an announcement , it is similar to blog post. isnt it ?

    another example is, buddyboss groups and forums

    Plugin Contributor Saumya Majumder

    (@isaumya)

    In LMS, Groups and Forums, most people who interact on the pages are loggedin users and for loggedin users the initial HTML request won’t be cached on Cloudflare and instead will be bypassed to be processed on the origin server. As a loggedin user can make many dynamic requests and pages can be shown dynamically to them based on many variables.

    Thats why for loggedin users the plugin won’t cache the initial HTML request. Cached pages are only be served for non-loggedin users.

    I imagine in LMS, when teacher publish an announcement , it is similar to blog post. isnt it ?

    – Yes, technically it should be.

    Thread Starter kinansy

    (@kinansy)

    the plugin won’t cache the initial HTML request

    only the initial html request?
    I need to exclude all requests of logged in users not just the initial one.
    can I control this ?

    Thread Starter kinansy

    (@kinansy)

    I think i know what you mean by the

    for loggedin users the plugin won’t cache the initial HTML request

    you mean the static files of the page. while the dynamic will always be excluded

    thanks

    Thread Starter kinansy

    (@kinansy)

    last question on this topic please.

    if there is a file that shows only for logged in users but it is same for all of them.
    For example, site.com/wp-content/plugins/Xplugin/assets/images/register-pic.png

    after this gets hit by first user. Will the next user hit it from CF ?
    and how can we extend its cached age, as it might never be changed ?

    Plugin Contributor Saumya Majumder

    (@isaumya)

    only the initial html request?
    I need to exclude all requests of logged in users not just the initial one.
    can I control this ?

    – When a user is loggedin the plugin will set no-cache cache-control header for the initial request that is of type text/html so it will be bypassed and served from your origin server but the static files will still be cached by Cloudflare.

    after this gets hit by first user. Will the next user hit it from CF ?

    – As I said the static file will always be cached by Cloudflare even for loggedin users.

    and how can we extend its cached age, as it might never be changed ?

    – Inside the plugin settings under the cache tab there is a section to add browser cache rule for static files. You can enable that as it will add the best cache control headers for the static files.

    Thread Starter kinansy

    (@kinansy)

    @isaumya Thanks for your time

    Brilliant explanation

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Automatically purge single post’ is closed to new replies.