• Resolved thegreatest1

    (@thegreatest1)


    Hello,

    I want to cache all posts in a specific category. I tries with /category/* in Force Cache URIs settings but it doesn’t work. Is there a way to fix this?

    regards

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Do all these posts have same URL structure ?

    e.g.

    https://domain.com/category-name/post1

    https://domain.com/category-name/post2

    https://domain.com/category-name/post3

    https://domain.com/category-name/post4

    …and so on ?

    if so , try use category-name in force cache setting.

    may I know why you would need to do this ? because by default post is cacheable without any additional setup.

    Best regards,

    • This reply was modified 6 years, 1 month ago by qtwrk.
    Thread Starter thegreatest1

    (@thegreatest1)

    Hi, no I have the plugin No Category Base activated, so it is: https://domain.com/post1.

    It is because I have memberpress and I cannot cache logged in users. I have tried ESI and it works but by forcing caching it gets a bit faster (the initial page load is faster).

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    I’m still little confused.

    By default the LSCWP should cache the post , no matter what the category it is.

    or you mean , you have that No Category Base , that breaks the caching ?

    and if you use permalink , you should be able to remove the category in URL without additional plugin.

    Best regards,

    Thread Starter thegreatest1

    (@thegreatest1)

    Yes but it doesnt cache logged in users. Ok Ill try without the plugin.

    But if my domain is: https://domain.com/post1. How can I cash specific categories?

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    it doesnt cache logged in users

    LSCWP has option to enable private cache on login user.

    But if my domain is: https://domain.com/post1. How can I cash specific categories?

    You can not manually do that if there is no URL structure to differentiate it from other category , but like I said , by default every page should be cached by LSCWP already.

    Please verify your HTTP header and see if it is cached or not.

    Best regards,

    Thread Starter thegreatest1

    (@thegreatest1)

    Hello, thank you for your answers. I cannot enable private cache för logged in users because the plugin Memberpress doesn’t work with it enabled. so it only caches public pages and that is why i want to do it manully. Ive tried ESI also.

    So if I change my permlink to https://www.website.com/%category%/%postname%/ i will be able wo make it work, with this URI: /category/?

    Plugin Support qtwrk

    (@qtwrk)

    Yes , that’s correct.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Cache all posts in a category’ is closed to new replies.