Support » Plugin: Super Page Cache for Cloudflare » is /wp-admin/ or /wp-includes/ chached ?

  • Resolved kinansy

    (@kinansy)


    i read that we need to cache /wp-content/ and bypass /wp-* and
    i see you only bypassing /wp-jason
    how is this dealt with in the default plugin settings?

    not sure what would happen if a guest hits some url in the wp-
    would they get some cached admin page ?

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

    (@isaumya)

    Hi,
    No WP admin requests are not cached. Only static files are cached when you are logged in. Regarding WP include static files they are cached. You don’t have to worry about it. This plugin fully takes care of loggedin session whether you are using the default page rule mode or the worker mode. It will work out of the box.

    Thread Starter kinansy

    (@kinansy)

    currently i am already using the 3 free pages rules on cloudflare.
    one of them is wp-* High security + Browser Integrity + bypass cache

    now how can i cache wp-content ?

    Plugin Contributor Saumya Majumder

    (@isaumya)

    This is your problem. You do not need any extra page rules while using this plugin. Delete all the page rules you have on your CF account. Then inside the plugin settings click disable page cache and then enable page cache so that the plugin can create it’s own page rule and that’s it. You won’t need any other page rules related to caching and do not tinker with the page rule added by the plugin.

    Thread Starter kinansy

    (@kinansy)

    do you mean the plugin by default caches the wp-content ?

    Plugin Contributor Saumya Majumder

    (@isaumya)

    yes the plugin will cache the static files in your wp content folder while for the dynamic HTML page requests it will only cache for the non loggedin users. Please read the plugin description section it explain everything clearly with a video. https://wordpress.org/plugins/wp-cloudflare-page-cache/#description

    Thread Starter kinansy

    (@kinansy)

    Thanks @isaumya
    i ll keep the security rules only.
    the bypass cache >>> i ll leave the default plugin behavior to decide it.

    I asked because in the settings i see Prevent the following URIs to be cached /wp-json* … so i thought what about the rest of wp-

    By the way, your article explaining CF cache “expiry” and edge servers is the best i found while searching

    Thread Starter kinansy

    (@kinansy)

    I decided to use the plugin settings to bypass my custom pages.

    Does it matter /loginX or /loginX/ ?

    Plugin Contributor Saumya Majumder

    (@isaumya)

    You should do /loginX

    Thread Starter kinansy

    (@kinansy)

    @isaumya

    after I save, it is automatically changing to /loginx/

    Plugin Contributor Saumya Majumder

    (@isaumya)

    Can you please share a screenshot?

    Thread Starter kinansy

    (@kinansy)

    this is a login page and 2 other pages
    https://drive.google.com/file/d/1OhlIZJKrCbm6kBWYViDiPe6wdO58wVqb

    when I remove the / at the end and click save. it get back immediately

    Plugin Contributor Saumya Majumder

    (@isaumya)

    Oh yes that is right. It was my bad.

    So, if you just enter /login then it will automatically add the trailing slash by itself.

    But you have different pages like for example /login-user/, /login-student/, /login-someone/ and you want all of those pages to be bypassed then instead of adding those paths separately you can also do /login-* and in this case the trailing slash won’t be added as you are using a * regex telling the system to bypass cache that starts with /login- and then anything that comes after it.

    Thread Starter kinansy

    (@kinansy)

    @isaumya
    brilliant help .

    Can i add part of the word with *
    because my login page is only 1 word, and the registration pages are generated from tutorlms

    example:
    /inter* … “if the login page is internal”
    kids-regist*
    parent-regist*

    Plugin Contributor Saumya Majumder

    (@isaumya)

    Hi,
    if you do /inter* then it will bypass for /internal as well as /international/ for example.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘is /wp-admin/ or /wp-includes/ chached ?’ is closed to new replies.