Changeset 539529
- Timestamp:
- 05/03/2012 05:27:45 PM (14 years ago)
- File:
-
- 1 edited
-
memcached/trunk/object-cache.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
memcached/trunk/object-cache.php
r435898 r539529 10 10 Install this file to wp-content/object-cache.php 11 11 */ 12 13 // Users with setups where multiple installs share a common wp-config.php or $table_prefix 14 // can use this to guarantee uniqueness for the keys generated by this object cache 15 if ( !defined( 'WP_CACHE_KEY_SALT' ) ) 16 define( 'WP_CACHE_KEY_SALT', '' ); 12 17 13 18 function wp_cache_add($key, $data, $group = '', $expire = 0) { … … 264 269 $prefix = $this->blog_prefix; 265 270 266 return preg_replace('/\s+/', '', "$prefix$group:$key");271 return preg_replace('/\s+/', '', WP_CACHE_KEY_SALT . "$prefix$group:$key"); 267 272 } 268 273
Note: See TracChangeset
for help on using the changeset viewer.