Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 7910a39

Browse files
author
Jamie Snape
committed
Tweak memcached settings
1 parent 45cfa4a commit 7910a39

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

core/GlobalController.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ public function preDispatch()
117117
if(!$this->isDebug())
118118
{
119119
$frontendOptions = array('automatic_serialization' => true, 'lifetime' => 86400);
120-
if(extension_loaded('memcache') || session_save_path() === 'Memcache')
120+
if(extension_loaded('memcached') || session_save_path() === 'Memcache')
121121
{
122-
$cache = Zend_Cache::factory('Core', 'Memcached', $frontendOptions, array());
122+
$cache = Zend_Cache::factory('Core', 'Libmemcached', $frontendOptions, array());
123123
}
124-
else if(extension_loaded('memcached'))
124+
else if(extension_loaded('memcache'))
125125
{
126-
$cache = Zend_Cache::factory('Core', 'Libmemcached', $frontendOptions, array());
126+
$cache = Zend_Cache::factory('Core', 'Memcached', $frontendOptions, array());
127127
}
128128
else
129129
{

php.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
google_app_engine.allow_include_gs_buckets = "your-cloudstorage-bucket"
12
google_app_engine.enable_functions = "php_sapi_name"
3+
session.gc_maxlifetime = 14400

0 commit comments

Comments
 (0)