BBPress Steven Zahm : Replies Created

Forum Replies Created

Viewing 10 posts - 6,861 through 6,870 (of 15,332 total)
  • Author
    Posts
  • Steven Zahm
    Keymaster

    @ Steve

    re: Perhaps you wouldn’t want to make this info public

    Nope, no harm in this being public. The caches are stored in the main {wpdb_prefix}_connections table as serialized arrays.

    re: So now you are saying we CAN’T disable it? Or are you saying that even if we disable it now, if we re-enable it later the old cached items will re-appear?

    Below is the code that will disable the caches. Like I said, disabling the cache will have a performance impact due to the increased number of db queries that will be required.

    Using this code you will bypass the caches… as soon as you remove the code, the caches will be used which means the old data be shown. NOTE: Even with the caches disabled, when you add/edit an entry the caches will be kept in sync. This only disable the caches when displaying the entries.

    function cn_disable_output_cache( $cached ) {
    
        return FALSE;
    }
    
    function cn_enable_output_cache() {
    
        remove_filter( 'cn_address_cached', 'cn_disable_output_cache' );
        remove_filter( 'cn_phone_cached', 'cn_disable_output_cache' );
        remove_filter( 'cn_email_cached', 'cn_disable_output_cache' );
        remove_filter( 'cn_messenger_cached', 'cn_disable_output_cache' );
        remove_filter( 'cn_social_network_cached', 'cn_disable_output_cache' );
        remove_filter( 'cn_link_cached', 'cn_disable_output_cache' );
        remove_filter( 'cn_date_cached', 'cn_disable_output_cache' );
    }
    
    add_filter( 'cn_address_cached', 'cn_disable_output_cache' );
    add_filter( 'cn_phone_cached', 'cn_disable_output_cache' );
    add_filter( 'cn_email_cached', 'cn_disable_output_cache' );
    add_filter( 'cn_messenger_cached', 'cn_disable_output_cache' );
    add_filter( 'cn_social_network_cached', 'cn_disable_output_cache' );
    add_filter( 'cn_link_cached', 'cn_disable_output_cache' );
    add_filter( 'cn_date_cached', 'cn_disable_output_cache' );
    add_action( 'cn_update-entry', 'cn_enable_output_cache');
    add_action( 'cn_save-entry', 'cn_enable_output_cache');
    

    TIP: you can use the Code Snippets plugin to add this code to your site having the ability to turn it on and off as needed with a click of a link. It is a plugin I highly recommend.

    Hope this clears up a bit of the confusion!

    in reply to: Can hours pop open #356848
    Steven Zahm
    Keymaster

    @ Christine

    Sorry, no, this is not possible. The template would have to be customized for you to add this feature.

    Steven Zahm
    Keymaster

    @ Scott

    So, the cause of the issue was that “rogue” page?

    in reply to: Connections Category not listing #356846
    Steven Zahm
    Keymaster

    @ Rob

    Well, that is really odd then. I’ll need a temp WP admin login so I can take a closer look. The login details can be posted here as a private reply. I’ll take a look as soon as I get the login.

    in reply to: Dont show photos in connections list #356845
    Steven Zahm
    Keymaster

    @ Suzanne

    Looks like you might have copy/pasted the code from my previous reply. You can do this, but you must paste into the WP post editor while on the “Text” tab. If you are in the “Visual” tab, you have to manually type the shortcode in or it will not work. This is not a Connections bug but the way the WP Visual editor works. When you paste in the Visual editor, the HTML from the site the code/text was copied from will also be pasted. It is this that can can break shortcodes / keep them from working.

    Hope that helps!

    in reply to: Pictures – Some work, some don't #356843
    Steven Zahm
    Keymaster

    @ Ryan

    Ok. Thanks for letting me know.

    in reply to: Awesome Install Directions #356842
    Steven Zahm
    Keymaster

    @ Suzanne

    re: Tried the button to override the plugin conflicts.

    What button would that be???

    re: What could be my problem.

    Hard to say, I need more info.

    1. Are the entries set be be “Public”?
    2. What is the exact shortcode you are using on the director page?
    3. Can you please share a link to the directory page?
    4. Can you share a System Info link with me? This can be created on the Connections : Tools admin page under the System Info tab.
    in reply to: Widen Card #356841
    Steven Zahm
    Keymaster

    @ Ryan

    Sure, here’s a link to the FAQ that give you the details on how to do it.

    Hope that helps!

    Steven Zahm
    Keymaster

    @ Steve

    re: What if we disable these caches, refresh the pages in a browser, then re-enable them? Would that reset the cache to the latest version?

    Sorry, no. The caches are only updated on write events (add/edit) not read events (showing in the browser). I do plan on releasing a new tool based on the new CSV export code to do cache refreshing but this will not be done in any timeframe that will do you any good.

    There just is no easy way to deal with “force refreshing” the caches at this time, sorry.

    in reply to: Category Search Widget Displays Entire Directory #356781
    Steven Zahm
    Keymaster

    @ Carrie

    Sorry, but I do not follow… I looked at the site and I do not see the widget you are talking about. Have you changed the page since posting the question?

Viewing 10 posts - 6,861 through 6,870 (of 15,332 total)