Skip to:
Content
Pages
Categories
Search
Top
Bottom

Is this a Buddypress Problem, bbPress Problem, or Caching Problem?


  • gregfielding
    Participant

    @gregfielding

    I’m trying to get my forums working correctly with memcached/batcache. This caching solution should be great because it is not supposed to serve cached pages where logged-in cookies are present. In fact, this may not be a caching issue at all. When I view the source of an offending forum thread, there is no batcache reference in the header.

    Here’s what happens:

    If I respond in to a forum thread, that response doesn’t show up. The thread will say that there are 3 replies, but only 2 show.

    Worse, if I go to the Group Forum Directory, the “Latest Poster” field is messed up. Some are blank. Some have the name of the latest poster, but the avatar of the previous one. Worse, still, the Group disappears and the permalink of the thread changes from:

    http://housingstorm.com/groups/support/forum/topic/subscribe-by-email-support/#post-231

    to

    http://housingstorm.com/forums//forum/topic/subscribe-by-email-support/ – which is nonsense and doesn’t work.

    http://housingstorm.com/forums

    Blog comments work great and all other Buddypress functions work perfectly – messaging, wire-posting, replies, following, etc.

    My assumption at this point is that, withing advanced-cache.php, Batcache is re-writing permalinks. Does anyone out there have any experience with this? I’m needing some professional help here and happy to pay for some time if anyone can help.

    Thank you!

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

  • gregfielding
    Participant

    @gregfielding

    Still struggling here – it’s not my theme, plugins, and I can’t find any documentation that caching would screw up permalinks. Even some gurus are stumped.

    My question now: Is there a way to “reset” my install to account for a possible glitch? I’ve reinstalled WP and BP but that doesn’t help, so maybe it’s a database error?

    Aargh.


    Paul Wong-Gibbs
    Keymaster

    @djpaul

    Does it go away if you disable memcache and batcache? (after clearing your own cache, of course)


    gregfielding
    Participant

    @gregfielding

    Just disabled batcache by removing object-cache.php and advcanced-cache.php and defining caching as false in wp-config. Not only does it work now, but the broken permalinks are fixed.]

    Blog comments were always fine – there must be something regarding BP/bbpress that isn’t caching-aware. Or, because batcache isn’t supposed to apply to logged-in users, maybe there is something about bbpress where cookies aren’t recognized.

    Any ideas? Is there a bat-phone I can call for help?


    Paul Wong-Gibbs
    Keymaster

    @djpaul

    From memory when I used to use W3TC, I ran into problems with caching not clearing on, I think, group pages (maybe the group’s activity stream). I think this happened when object caching was enabled (not page caching). We’ve got a ticket for 1.3 to try to look into this, but I personally don’t have enough knowledge about the way object and page caching works internally in BuddyPress, so I can’t do much more.


    gregfielding
    Participant

    @gregfielding

    Is this the ticket you were thinking of?

    https://trac.buddypress.org/ticket/2636

    Looks like it’s been bumped to BP 1.4.

    This user was using W3TC and had the same issue – and that’s a popular plugin here in the community. As anyone found a fix?


    Paul Wong-Gibbs
    Keymaster

    @djpaul

    I bumped it because Boone and I were going through all the 1.3 milestone tickets to see what we thought could be left out until a later version. It was bumped because, whilst it’s an important issue or showstopper for people who use this sort of caching, it’s not a critical issue for every install and we need to focus on the must-fix tickets. It’s also outside Boone and mine’s knowledge/area. Personally I would have to go away and spend a lot of time figuring out how to figure out what’s not being cleared somewhere.

    At time of writing, there are 47 tickets which we thought we really really need to get fixed for 1.3 — that’s obviously a lot of work and time, and contributions on any of the tickets in https://trac.buddypress.org/report/11 would be appreciated :) And if anyone has information on how to solve this particular ticket, or does fix it and provides a good patch, it’ll get into 1.3. It’s not set in stone.


    gregfielding
    Participant

    @gregfielding

    @r-a-y put together a solution that worked for caching and private messaging https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/persistent-caching-and-private-messaging

    Maybe this is in a similar family…

    Thanks for your input Paul.


    gregfielding
    Participant

    @gregfielding

    Digging deeper, the problem is Memcached. Has anyone been able to get object caching like memcached or xcache to work with Buddypress?


    nanchante
    Participant

    @nanchante

    we run memchahce and eaccelrator,and w3tc and , though we are in dev, it seems to work ok.

    Then initial get takes ages (lots of plugins, and not sure which are the worst), and so I have a cron that runs every minute that gets the /forums/ page. I THINK this helps, as I assume it would be caching stuff so any user hitting the page will always get some cached objects etc…

    At least that’s my theory.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Is this a Buddypress Problem, bbPress Problem, or Caching Problem?’ is closed to new replies.
Skip to toolbar