rveitch
1/9/2017 - 4:02 PM

MemacheD or Memache php test

MemacheD or Memache php test

<?php
if ( class_exists("Memcached") ) {
	echo 'You are using Memcache(d)';
	global $memcached_servers;
	if ( ! is_array( $memcached_servers ) ) {
		echo 'Warning: No memcached server settings found.';
	} else {
		echo '<pre>';
		print_r($memcached_servers);
	}
} else if ( class_exists("Memcache") ) {
	echo 'You are using Memcache';
} else {
	echo 'Neither Memcache(d) or Memcache where found';
}