• Resolved hungvuviet

    (@hungvuviet)


    Please help me check why plugin does not work:
    I see no page rule or worker created.

    Error message:
    Page caching seems not working for both dynamic and static pages.

    Error on dynamic page (https://website.com): Cache status: DYNAMIC – The resource was not cached by default and your current Cloudflare caching configuration doesn’t instruct Cloudflare to cache the resource. Instead, the resource was requested from the origin web server.

    Error on static resource (https://website.com/wp-content/plugins/wp-cloudflare-page-cache/assets/testcache.html): Cache status: DYNAMIC – The resource was not cached by default and your current Cloudflare caching configuration doesn’t instruct Cloudflare to cache the resource. Instead, the resource was requested from the origin web server.

    Please check if the page caching is working by yourself by surfing the website in incognito mode ’cause sometimes Cloudflare bypass the cache for cURL requests. Reload a page two or three times. If you see the response header cf-cache-status: HIT, the page caching is working well.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi,
    Unless you provide the URL of your website, I won’t be able to test and check what’s going on. In the above message, you have removed the most important thing that is your site URL.

    Please share your actual site URL while the plugin is active and you are getting this message – so that I can check your site to see the reason behind it.

    Otherwise, there are many similar posts (hundreds) in this support thread just check them, I’m sure you will get your answer.

    Please help me check why plugin does not work:
    I see no page rule or worker created.

    – Please share the screenshot of the page rule section from your Cloudflare dashboard.
    Worker only gets created when you enable the worker mode.

    • This reply was modified 2 years, 5 months ago by iSaumya.
    Thread Starter hungvuviet

    (@hungvuviet)

    Hi @isaumya this is my site link: https://vuihocweb.club
    Thanks

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @hungvuviet,
    from what I can see the plugin is working perfectly on your website dn everything is set properly: https://i.imgur.com/ZtFQIDO.jpeg

    Also, there are no custom c rookies involved. So, things looks good from the plugin’s setup end.

    Can you now share the screenshot of your Cloudflare dashboard Page Rule section for this domain for further diagonesis?

    Thread Starter hungvuviet

    (@hungvuviet)

    hi @isaumya

    Thanks, but as I said, the page rule sections is empty: https://imgur.com/a/5V2rdip

    Plugin Contributor iSaumya

    (@isaumya)

    If the page rule section is empty then inside the plugin settings page, click on Disable page cache and then again check on Enable Page cache. that should automatically create the page rule.

    Also the worker mode is turned off right?

    Thread Starter hungvuviet

    (@hungvuviet)

    @isaumya page rule sections still empty and test cache still show the error.

    yes, the worker mode is off. Should I turn it on?

    Plugin Contributor iSaumya

    (@isaumya)

    First inside the plugin settings und3er the Others tab set the LOG VERBOSITY to HIGH.
    Then try to do the same thing Enable/Disable cache. Then check the logs generated by the plugin.

    There you will be able to see what response is being sent by the Cloudflare API. It might be possible you have provided wrong Global API key of a wrong zone or something.

    Check the logs.

    Thread Starter hungvuviet

    (@hungvuviet)

    @isaumya yeah, log helps. It says: Unauthorized to access requested resource. I used API token generated with WordPress template and it seems lacking page rule edit permission.

    I changed to use global API key and it works. I think I missed document somewhere to create API token correctly.

    Thanks you!

    Plugin Contributor iSaumya

    (@isaumya)

    I am happy to hear that your problem has been resolved. ??
    I am making this thread as resolved.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Page caching seems not working for both dynamic and static pages.’ is closed to new replies.