Title: Notice: Undefined variable: batcache
Last modified: August 22, 2016

---

# Notice: Undefined variable: batcache

 *  [Mikel King](https://wordpress.org/support/users/vizkr/)
 * (@vizkr)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/notice-undefined-variable-batcache/)
 * Observed this error today…
 * Notice: Undefined variable: batcache in wp-content/plugins/batcache.php on line
   12
 * To fix it I added the global $batcache; line before the first use. If you want
   a full patch I can generate one…
 *     ```
       <?php
       /*
       Plugin name: Batcache Manager
       Plugin URI: http://wordpress.org/extend/plugins/batcache/
       Description: This optional plugin improves Batcache.
       Author: Andy Skelton
       Author URI: http://andyskelton.com/
       Version: 1.2
       */
   
       global $batcache;
   
       // Do not load if our advanced-cache.php isn't loaded
       if ( ! is_object($batcache) || ! method_exists( $wp_object_cache, 'incr' ) )
       	return;
   
       $batcache->configure_groups();
       ```
   
 * Cheers,
    Mikel
 * [https://wordpress.org/plugins/batcache/](https://wordpress.org/plugins/batcache/)

The topic ‘Notice: Undefined variable: batcache’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/batcache_e96e10.svg)
 * [Batcache](https://wordpress.org/plugins/batcache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/batcache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/batcache/)
 * [Active Topics](https://wordpress.org/support/plugin/batcache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/batcache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/batcache/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Mikel King](https://wordpress.org/support/users/vizkr/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/notice-undefined-variable-batcache/)
 * Status: not resolved