• Resolved 9itish

    (@9itish)


    Hi,

    I installed WPForo on my website recently. It adds a forum to my website where all the content is located on URLs which follow the pattern my-domain.com/community/*.

    The issue I am facing is that whenever a user posts something on the forum, it does not appear right away. This is due to caching by LiteSpeed.

    I came up with two solutions for this problem.

    1. Disable cache for logged in users because they are the ones who will be updating the content and need to see updates immediately.
    2. Disable all cache for the forum by going to Settings > Exclude > Do Not Cache URIs and adding:

    
    community/
    community/*
    

    Which one do you think would be better for performance?

    I have a question about solution 1. Since the caching is disabled only for logged in users, will logged out users see outdated pages? For example, a logged-in user might add a new post in a forum thread. How long will it it take logged out users to see that update?

    Thanks.

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

    (@qtwrk)

    Hi,

    Obviously the solution 2 is the better way, even a login user could still benefits from caching pages outside of “/community”

    1. Since the caching is disabled only for logged in users, will logged out users see outdated pages? For example, a logged-in user might add a new post in a forum thread. How long will it it take logged out users to see that update?

    if you have exclude it by solution 2 , then it doesn’t matter if it’s login or guest user, they are all serving uncached , real-time , generated page when visiting URL that contains “community”

    But if you have something like “latest post” widget or things like that , you may need to invoke ESI block for that part in order to deliver most-real-time update , or set it to a short TTL , like 5 minutes , 10 minutes …etc, but it’s up to you ??

    Best regards,

    Thread Starter 9itish

    (@9itish)

    Thanks @qtwrk ??

    Will 2 still be a better solution, most of the visitors (almost 90%) were logged out users?

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Well , not exactly , disabling cache at all is definitely not a good solution , but it appears to be the only solution.

    The best way is to ask WP foro author to integrate LSCWP API

    That way , the cache will work normally , and when someone is posting a new thread , use API can purge the related cache.

    Best regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Best way to disable Cache on Forum’ is closed to new replies.