Search

bbPress Showcase » Plugins by _ck_

Disable wordpress cache is bbpress

RSS
  1. Argancel
    Argancel

    member
    Joined: May '09
    Posts: 19

    offline

    My bbpress forum is installed in a subdirectory of my wordpress installation and they are integrated each other.

    However I don't like that the cache mechanism of Wordpress affects bbpress. Especially with the _ck_'s post-wiki plugin. When I modify the wiki post, the changes cannot be seen and we have to wait for the cache to expire so that we can see the changes.

    So my question would be : how to disable wordpress cache in my bbpress installation? Maybe there is an option to exclude specific directories?
    And is there a fix about the post-wiki plugin issue?

    Note : I use bbPress 0.9 with WP 2.7

    Blogmaster of C'éclair!
    Posted 2 years ago #
  2. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 908

    offline

    Are you saying you have deep integration and wp-super-cache is caching bbPress pages?

    You'd have to figure out a way to tell the cache to exclude the forum subdirectory.

    I am not familiar enough with wp-super-cache to know how to do that but I am sure you can google for it or look on wordpress.org or bbpress.org

    From what I have found, you will have to edit the
    function wp_cache_is_rejected
    inside wp-super-cache
    and add the directory to your forums to the if statement,
    ie.

    function wp_cache_is_rejected($uri) {
    	global $cache_rejected_uri;
    
    	$auto_rejected = array( '/forums/', '/wp-admin/', 'xmlrpc.php', 'wp-app.php' );

    See how I added /forums/ to that list.

    You might not even need to edit the plugin.
    From what I can see the newest version accepts expressions in the admin menu.
    So you should be able to enter a pattern like:
    ^\/forums\/.*

    Posted 2 years ago #
  3. Argancel
    Argancel

    member
    Joined: May '09
    Posts: 19

    offline

    Hi _ck_, thanks for your answer!

    Actually I don't use a cache plugin in WordPress.

    But I have noticed that when I cleanup cache directory of wordpress, I can see the newer version of my bbpress pages.

    Posted 2 years ago #
  4. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 908

    offline

    You might mean the object cache.
    I have no idea how the wp object cache is affecting bbPress or how to make it stop, it's not something I use.

    I don't see how the bbPress topic page is cached by wordpress without a plugin, it doesn't make sense to me.

    Posted 2 years ago #
  5. Argancel
    Argancel

    member
    Joined: May '09
    Posts: 19

    offline

    I see. I guess I will have to check the config possibilities of the object cache.

    Posted 2 years ago #

RSS feed for this topic

Post a reply to “Disable wordpress cache is bbpress”

You must log in to post.

keep _ck_ coding >> donate $5 <<     Theme Switcher:
41 users online from in the past 30 minutes. 19 bots 22 guests
3,556 views today 8,638 yesterday 16,043 peak. Most at once 47 today 60 yesterday 131 peak. Visited today: qamilon, pandoracam, lvgalliera
2,288 posts in 394 topics over 66 months by 430 of 2,165 members. Latest: qwe12345100, Janvelden, watchessaleus