Plugin Directory

Changeset 874810


Ignore:
Timestamp:
03/13/2014 03:31:30 PM (12 years ago)
Author:
prettyboymp
Message:

adding WP_CACHE_KEY_SALT support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • memcached-redux/trunk/object-cache.php

    r817990 r874810  
    99Install this file to wp-content/object-cache.php
    1010*/
     11
     12if ( !defined( 'WP_CACHE_KEY_SALT' ) ) {
     13    define( 'WP_CACHE_KEY_SALT', $_SERVER['SERVER_NAME'] );
     14}
    1115
    1216if ( class_exists( 'Memcached' ) ):
     
    297301            $prefix = $this->blog_prefix;
    298302
    299         return preg_replace( '/\s+/', '', "$prefix$group:$key" );
     303        return preg_replace( '/\s+/', '', WP_CACHE_KEY_SALT . "$prefix$group:$key" );
    300304    }
    301305
Note: See TracChangeset for help on using the changeset viewer.