• Hello. I activated the Object Cache on three blogs today with awesome performance results. The only problem I can see is that where there was a list of categories in the sidebar it now says “No Categories.”

    You can see this on one of the three websites with broken categories:
    http://celebrity.rightpundits.com/

    The blog that still works without object caching enabled is this one:
    http://sports.rightpundits.com/

    The php call in the sidebar made by the Tiga theme is this:

      <?php wp_list_cats(‘sort_column=name&optioncount=1’); ?>

    </div>

    The categories are all still there in the databases, and I optimized the tables.

    The blogs are all on the same dedicated server, all using the same Tiga 1.0.2 theme on WordPress 2.1 on Linux.

    The wp-config.php file now looks like this. I’ve been running wp-cache2.0.19 forever and just now added object caching which resulted in the problem:

    <?php
    /** WordPress’s config file **/
    /** http://wordpress.org/ **/

    // ** MySQL settings ** //
    define(‘WP_CACHE’, true); //Added by WP-Cache Manager
    define(‘DB_NAME’, ‘celebrity_rightpundits’); // The name of the database
    define(‘DB_USER’, ‘xxxxxx’); // Your MySQL username
    define(‘DB_PASSWORD’, ‘xxxxxx’); // …and password
    define(‘DB_HOST’, ‘localhost’); // …and the server MySQL is running on

    // Change the prefix if you want to have multiple blogs in a single database.

    $table_prefix = ‘wp_’; // example: ‘wp_’ or ‘b2’ or ‘mylogin_’

    // Change this to localize WordPress. A corresponding MO file for the
    // chosen language must be installed to wp-includes/languages.
    // For example, install de.mo to wp-includes/languages and set WPLANG to ‘de’
    // to enable German language support.
    define (‘WPLANG’, ”);

    // Enable the WordPress Object Cache:
    define(ENABLE_CACHE, true);

    /* Stop editing */

    $server = DB_HOST;
    $loginsql = DB_USER;
    $passsql = DB_PASSWORD;
    $base = DB_NAME;

    define(‘ABSPATH’, dirname(__FILE__).’/’);

    // Get everything else
    require_once(ABSPATH.’wp-settings.php’);
    ?>

    Sorry if I am omitting details that are important. My level of technical ability is between bad and mediocre.

    Any help appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Catgegories Disappear from Sidebar after Object Cache activated’ is closed to new replies.