[fix] Switch to the 'memcached' extension due to bugs in 'memcache'

This commit is contained in:
Solomon Peachy 2010-06-03 08:23:43 -04:00
parent f733703614
commit 47548af0d1
5 changed files with 11 additions and 9 deletions

View File

@ -27,6 +27,7 @@ For further information about Photo Organizer, see its web site at:
[fix] Possible infinite loop in the import code.
[fix] Fix memcache not being cleared when the folder/album name was changed.
[misc] Get rid of warning when running under php 4.3.x
[fix] Switch to the 'memcached' extension (instead of 'memcache')
2.37-rc2 (October 13, 2009)

View File

@ -80,7 +80,8 @@ $po_cookie_path = "/";
// $po_session_handler = "memcache";
// If you want to use memcache to cache non-session data, set it here:
$po_memcache = "";
//$po_memcache = array(array("localhost", 11211), array("localhost",11212));
$po_memcache = array();
// absolute path to your temporary directory which
// is used to store printed files while they are converted

View File

@ -84,9 +84,9 @@ function site_prolog($min_type = PO_USER_TYPE_DISABLED) {
if ($database == FALSE) return FALSE;
/* Connect to the memcache */
if ($po_memcache) {
$memcache = new Memcache;
$memcache->connect($po_memcache);
if (count($po_memcache)) {
$memcache = new Memcached;
$memcache->addServers($po_memcache);
}
/* Start up session */

View File

@ -942,8 +942,8 @@ if (!function_exists("xml_parser_create")) {
print "<h4><font color=\"red\">PHP's XML extension is not installed or enabled. The <i>XML</i> extension is required.</font></h4>\n";
$go = 0;
}
if (!extension_loaded("memcache")) {
print "<h4>PHP's Memcache extension is not installed or enabled. You can use this extension to cache static database data and speed up many page loads.</h4>\n";
if (!extension_loaded("memcached")) {
print "<h4>PHP's Memcached extension is not installed or enabled. You can use this extension to cache static database data and speed up many page loads.</h4>\n";
}
$foo = include_once 'Log.php';
if ($foo === FALSE) {

View File

@ -38,9 +38,9 @@ function child_fn() {
$database = po_dbconnect();
/* Connect to the memcache */
if ($po_memcache) {
$memcache = new Memcache;
$memcache->connect($po_memcache);
if (count($po_memcache)) {
$memcache = new Memcached;
$memcache->addServers($po_memcache);
}
print "Starting Worker\n";