Support » Plugin: Sunny » [Suggestion] – add Purge This Page/Post link to pages and posts

  • Resolved efishinsea

    (@efishinsea)


    Right now, there are several steps you must take to get to the “URL Purger” tool.

    Rather than having to navigate into the Sunny admin screen, then select another tab to get to the Tools, then have a copied link to a page or post (or CSS resource file, etc.) it would be nice to simply have a link/button on each page/post near the “Publish” box, or even one in the admin-bar, which you could click to clear that URL from CloudFlare.

    It would also be nice to have some preselected collections to purge, like the current theme folder, etc.

    Thanks for a useful plugin!

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

    (@tangrufus)

    Sunny automatically triggers a purge if you publish / update / trash a post. Manually using the URL Purger is unnecessary. Simple click WordPress’ Update button will do.

    As of Sunny 2.0.0, the URL Purger is hidden because I haven’t upgrade it to use the new codebase yet.

    If you are a developer check the REST folder and the RelatedUrls folderin the source code. It tells you what related urls will be purge for a given post.

    If you not a developer, please wait…

    For static assets such as images/videos/CSS/JS, append version number to the urls / use unique file names instead. This helps when using Cache-Control: Immutable feature
    Sunny has no plan to support static assets.

    > It would also be nice to have some preselected collections to purge
    Document about how to do this via add_action and add_filter will come once I think Sunny’s api is stable enough.

    Besides, I am looking for developer job (both part-time and full-time). If you know someone needs a hand, please let me know
    tangrufus[at]gmail.com
    https://www.typist.tech/contact

    • This reply was modified 4 years, 3 months ago by Tang Rufus.
    • This reply was modified 4 years, 3 months ago by Tang Rufus.
    Plugin Author Tang Rufus

    (@tangrufus)

    Thanks for the suggestions.

    Thread Starter efishinsea

    (@efishinsea)

    The latest update has an error.

    
    Plugin could not be activated because it triggered a fatal error.
    
    Parse error: syntax error, unexpected '.' in /html/wp-content/plugins/sunny/src/Sunny.php on line 92
    

    It took my site offline, so I disabled it.

    Thanks.

    Plugin Author Tang Rufus

    (@tangrufus)

    Sunny 2.0.0 requires php 7 or later and WordPress 4.7 or later. Please upgrade your servers.

    About backward compatibilities, I have no plan to support php 5 because php 7 makes developing easier.

    The next version will deactivate itself if minimum requirements(php and WordPress version) don’t meet. Until then, ftp to your php 5 server and remove Sunny manually.

    See this thread https://wordpress.org/support/topic/parse-error-syntax-error-in-ver-2-0-update/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Suggestion] – add Purge This Page/Post link to pages and posts’ is closed to new replies.