• Gulshan Kumar

    (@thegulshankumar)


    Dear Breeze Plugin Developer,

    Please read this topic properly.

    I am experiencing an issue with the Cloudflare Enterprise addon on my subdomain at subdomain.example.com/hi/.

    The problem arises when I update the ‘hello world’ post at subdirectory, as the cache doesn’t get purged. I have verified this multiple times, and the cache remains unchanged until I purge from Breeze cache plugin installed at subdomain.example.com WordPress.

    I have been searching for a solution to this problem, but unfortunately, I haven’t been able to find a official way to disable the Cloudflare Edge Cache specifically for the subdirectory based WordPress. Excluding via Breeze isn’t possible for the subdirectory.

    As a solution I switched to W3TC (https://i.imgur.com/D0jS7mD.png)

    Could you please assist me in resolving this issue? I expect that you add Automatic Cache purge solution for Subdirectories as well.

    Your help would be greatly appreciated.

    Thank you.
    Best regards,
    Gulshan

    • This topic was modified 1 year, 4 months ago by Gulshan Kumar. Reason: Added clarity
    • This topic was modified 1 year, 4 months ago by Gulshan Kumar. Reason: Updated link
    • This topic was modified 1 year, 4 months ago by Gulshan Kumar.
Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author adeelkhan

    (@adeelkhan)

    Please share the response headers from Console under Network Tab.

    Thread Starter Gulshan Kumar

    (@thegulshankumar)

    Alt-Svc: h3=":443"; ma=86400
    Cache-Control: max-age=0
    Cf-Cache-Status: MISS
    Cf-Ray: 7eff734609469a99-NAG
    Content-Encoding: br
    Content-Type: text/html; charset=UTF-8
    Date: Tue, 01 Aug 2023 16:27:45 GMT
    Expires: Tue, 01 Aug 2023 16:27:45 GMT
    Referrer-Policy: no-referrer-when-downgrade
    Server: cloudflare
    Vary: Accept-Encoding,Cookie
    X-Powered-By: W3 Total Cache/2.3.3

    Plugin Author adeelkhan

    (@adeelkhan)

    It means Internal cache not purged while update post. Please confirm cache files created under Breeze cache folder. If files are created it must be remove while update content in post/page editor. It would better ?create ticket?at our support Centre than share the findings related to the point of conflict. We will investigate and share the point of conflict.

    • This reply was modified 1 year, 4 months ago by adeelkhan.
    Thread Starter Gulshan Kumar

    (@thegulshankumar)

    Sorry, Internal cache isn’t into picture here.

    The problem is Breeze doesn’t purge the Cloudflare cache for the subdirectory based WordPress, as I can see the ‘Age’ header value keep increasing every seconds.

    That’s my concern.

    Let suppose you’ve installed WordPress at https://subdomain.example.com where Cloudflare Enterprise addon is enabled. Breeze works fine on this primay site. No problem here.

    But I do have a subdirectory based WordPress for the Hindi Language at https://subdomain.example.com/hi/

    So, at this subdirectory I have Breeze installed. Technically, since subdomain and its subdirectory share same IP address, CF is active here as well which is correct. But why Breeeze can’t purge cache taking SITE_URL into consideration? Please fix your plugin.

    Thread Starter Gulshan Kumar

    (@thegulshankumar)

    Hi, Adeel!
    Hope you’re very well.

    Do you need any more information to investigate the issue?

    Thanks

    Plugin Author adeelkhan

    (@adeelkhan)

    Thanks for highlight the point. It will fix in our upcoming releases.

    Thread Starter Gulshan Kumar

    (@thegulshankumar)

    Thank you so much. I would be happy to test it out.

    Thread Starter Gulshan Kumar

    (@thegulshankumar)

    @adeelkhan Is automatic purge feature supported for Subdirectory now?

    Plugin Author adeelkhan

    (@adeelkhan)

    Yes its supported.

    Thread Starter Gulshan Kumar

    (@thegulshankumar)

    6 months later, I have checked again.

    My WordPress is installed at /hi/ subdirectory. https://subdomain.example.com/hi/wp-admin/index.php

    When I click on the “Purge All Cache” in the WordPress Admin Bar, cache doesn’t get cleared.

    I also have WP at https://subdomain.example.com/wp-admin/index.php
    When I follow same step as above, then purge works.

    Ideally, if I want to clear the homepage or anything of subdirectory, purge should work from the Admin Toolbar seperately from the subdirectory as well.

    Inside wp-config.php, I can see below things are set in both WP instances. I am not sure from where this ste ID is coming, it’s same in my case.

    define( ‘CDN_SITE_ID’, ‘XXXXXX’ );
    define( ‘CDN_SITE_TOKEN’, ‘XXXXXXXXXXXX’ );

    Update: I realized when I update post, it works fine. But I want to clear the homepage cache after adding meta tags. So in that case I had to do from the main site.

    I suggest you to check this feature from the Subdirectory.

    • This reply was modified 10 months ago by Gulshan Kumar. Reason: Added update that issue is limited to admin toolbar
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Doesn’t Purge Cloudflare Addon Cache for Subdirectory based WP’ is closed to new replies.