tollmanz / wordpress-pecl-memcached-object-cache

A WordPress object cache that uses the memcached (not memcache) PECL extension.
233 stars 114 forks source link

$memcached_servers compatibility with "the other plugin" #80

Open joehoyle opened 8 years ago

joehoyle commented 8 years ago

I'm not sure if this was intentional or discussed before, we use(d) a fork of this dropin: https://wordpress.org/plugins/memcached/ which I'm sure most are familiar with.

The format for defining $memached_servers global in that plugin is as such:

$memcached_servers = array( 'hostname:port' );

Whereas wordpress-pecl-memcached-object-cache uses:

$memcached_servers = array( array( 'hostname', 'port' ) );

This annoyingly makes the two configurations very similar but different. I am running the same codebase with each dropin, which makes it a pain to do different configuration. I just wondered if compatibility had been discussed for these?

Thanks!