Skip to:
Content
Pages
Categories
Search
Top
Bottom

bbp_clean_post_cache() problem


  • Mike Stop Continues
    Participant

    @mike-stop-continues

    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

    @mike-stop-continues

    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 );


    John James Jacoby
    Keymaster

    @johnjamesjacoby

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


    Mike Stop Continues
    Participant

    @mike-stop-continues

    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}


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    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

    @mike-stop-continues

    Thanks. Will do.


    Mike Stop Continues
    Participant

    @mike-stop-continues

    It works! You rock, dude!


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    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