Skip to:
Content
Pages
Categories
Search
Top
Bottom

bbp_clean_post_cache() problem

  • @mike-stop-continues

    Participant

    I just recently ported my website from a multisite install to a single install, though I’ve just been transferring content as it was just a dev site anyway. So instead of a database port, I just exported and imported the data I wanted, including my forums/topics/replies.

    Anyway, I wasn’t able to post new content (it would just give me an empty page instead) until I changed the bbp_clean_post_cache() function so that the first line is “return;”.

    My thought is that the ported forums/topics/replies is what’s caused the problem.

    In any case, how do I fix the problem?

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • @mike-stop-continues

    Participant

    In fact, it’s this section causing the problem:


    if ( $parent = $wpdb->get_results( $wpdb->prepare( "SELECT ID, post_type FROM $wpdb->posts WHERE ID = %d", $post->post_parent ) ) )
    bbp_clean_post_cache( $parent );

    @johnjamesjacoby

    Keymaster

    Using any catching plugins? How many forums, topics, and replies do you have?

    @mike-stop-continues

    Participant

    Hi,

    I’m not using any cache plugins. I’ve only got 18 forums (flat), 1 topic, and 1 reply. Here’s a dump of all the hooks in use on the topic page.

    {snip}

    @johnjamesjacoby

    Keymaster

    Some improvements to this bit of code were made in bbPress 2.2, which is due out any day now. Maybe give it a try and report back?

    @mike-stop-continues

    Participant

    Thanks. Will do.

    @mike-stop-continues

    Participant

    It works! You rock, dude!

    @johnjamesjacoby

    Keymaster

    Sweet. Thanks. Happy to help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Skip to toolbar