Title: WP_Cache has some problems
Last modified: August 19, 2016

---

# WP_Cache has some problems

 *  [mrglue](https://wordpress.org/support/users/mrglue/)
 * (@mrglue)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/wp_cache-has-some-problems/)
 *     ```
       $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)

 *  [yoch](https://wordpress.org/support/users/yoch/)
 * (@yoch)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/wp_cache-has-some-problems/#post-1821903)
 * Hello
 * Same results here since upgrading to 3.0
    cache is always refreshing
 *  [patforg](https://wordpress.org/support/users/patforg/)
 * (@patforg)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/wp_cache-has-some-problems/#post-1821921)
 * 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](http://wordpress.org/extend/plugins/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.
 *  [patforg](https://wordpress.org/support/users/patforg/)
 * (@patforg)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/wp_cache-has-some-problems/#post-1821922)
 * 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.

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)
 * [wp_cache_get](https://wordpress.org/support/topic-tag/wp_cache_get/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [patforg](https://wordpress.org/support/users/patforg/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/wp_cache-has-some-problems/#post-1821922)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
