• $result = wp_cache_get( 'my_cache' );
    	if ( false == $result ) {
    		$result = 'cache doesnt work';
    		wp_cache_set( 'my_cache', $result );
    		echo 'cache: false <br>';
    	} else $result = 'cache works perfectly';
    	echo $result;

    I have tested this code with the only 1 result ‘cache doesnt work’.
    Pls help me to figure out this problem.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello

    Same results here since upgrading to 3.0
    cache is always refreshing

    Was having problems in wordpress 3.0.4 with the code above (and other object caching tests)

    I had problems with W3 Total Cache Version 0.9.1.3.

    Tried WP File Cache plugin and got the cache working.

    Now invistigating why W3 Total Cache is not working.

    Note: I am using a multisite setup with one other plugin enabled WordPress MU Domain Mapping.

    If any one has the solution or know what’s causing the problem help is welcome.

    Ok figured it out… the problem was that W3 Total Cache wasn’t loading the right config file (since I was remapping my domain)

    I have a multisite setup which is basically as follows

    1. main domaain my-blogs.com
    2. multisite enabled with subdomain with site blog1.my-blogs.com
    3. using WordPress MU Domain Mapping so that blog1.my-blogs.com redirectos to my-real-blog.com

    Problem was that W3 Total Cache was trying to load the config file w3-total-cache-config-my-real-blog.com.php instead of w3-total-cache-config-blog1.my-blogs.com.php.

    What I did to fix the problem I created a symlink from w3-total-cache-config-blog1.my-blogs.com.php to w3-total-cache-config-my-real-blog.com.php.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP_Cache has some problems’ is closed to new replies.