Changeset 35108
- Timestamp:
- 10/13/2015 02:06:19 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/cache.php
r34765 r35108 20 20 21 21 function &init_cache() { 22 $cache = new WP_Object_Cache(); 22 global $wp_object_cache; 23 $cache_class = get_class( $wp_object_cache ); 24 $cache = new $cache_class(); 23 25 $cache->add_global_groups( array( 'global-cache-test', 'users', 'userlogins', 'usermeta', 'user_meta', 'site-transient', 'site-options', 'site-lookup', 'blog-lookup', 'blog-details', 'rss', 'global-posts', 'blog-id-cache' ) ); 24 26 return $cache;
Note: See TracChangeset
for help on using the changeset viewer.