• Resolved annamariaerik

    (@annamariaerik)


    Hi, I’m updating clients plugins and if he is already using Cloudflare, does he still needs Sunny at the same time? What are the benefits running them together?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Tang Rufus

    (@tangrufus)

    I strongly recommend you read the plugin source code before using it on a client’s site.

    Sunny purges cloudflare caches. To be specific, the “cache everything” caches.

    Is it a must to use Sunny?
    No.
    If you don’t use “cache everything” page rules, you probably don’t need Sunny.

    Note that old versions (before v2.0.0) of Sunny has another feature – creating ip firewall rules.
    It has been extracted as WP Cloudflare Guard.

    • This reply was modified 6 years, 8 months ago by Tang Rufus.

    @annamariaerik made a rookie mistake here and presented an ambigously worded question.

    By “Cloudflare”, she actually means the official WP plugin which has recently gained a ton of features https://www.ads-software.com/plugins/cloudflare/ where some seem to overlap what Sunny used to do exclusively.

    It is the feature overlap that we’re wondering about – does Sunny have anything exclusive left?

    Is there a use case where both of these plugins should / could be activated simultaneously?

    Or should Cloudflare official plugin be preferred in most cases…?

    Thanks for considering us for some additional info here.

    Plugin Author Tang Rufus

    (@tangrufus)

    It is the feature overlap that we’re wondering about – does Sunny have anything exclusive left?

    There’s no feature overlap actually. Sunny and the official cloudflare plugin purge different URLs at different times(hooks).

    Sunny purge HTML pages which cached by “cache everything” page rules.

    The official cloudflare plugin has lots of other features. Can’t say much about it because I don’t use it. Beware that it might purges everything whenever your site changed.

    In short: if you don’t use “cache everything” page rules, you probably don’t need Sunny.

    John

    (@lordalerion)

    Tang, I have been looking for this exact functionality. Basically, we use Cache Everything Rules, which works well but it also works too well. Sunny will clear everything while the official Cloudflare plugin only clears whatever is related to the post or page.

    Tang, can you clarify, when does Sunny Purge Everything, when publishing a post? Updating a page? Is there a list of when Purge Everything triggers? I am not good at looking at code, so if you can help, I would appreciate it. Thank you

    Plugin Author Tang Rufus

    (@tangrufus)

    > when does Sunny Purge Everything when publishing a post? Updating a page? Is there a list of when Purge Everything triggers?

    Sunny never purges everything.

    For the list of urls Sunny purges, check the debugger page. Example: https://ps.w.org/sunny/assets/screenshot-5.png?rev=1798938

    transition_post_status and edit_post trigger purges. See: https://github.com/TypistTech/sunny/blob/master/src/Posts/PostListener.php

    John

    (@lordalerion)

    Hi Tang, but you say above “Sunny purges cloudflare caches. To be specific, the “cache everything” caches.”

    If Sunny purges “Cache Everything” then doesn’t that = “Purge Everything”?

    I will make a new post for my questions tomorrow, sorry for being in this one.

    Plugin Author Tang Rufus

    (@tangrufus)

    John

    (@lordalerion)

    Yes we use that, and to solve our problem internally, we “Purge Everything”. We wanted to use Sunny for this.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Why is Sunny needed with Cloudflare?’ is closed to new replies.