Authored by whb

PC的搜索切换和memcache配置减少一台

... ... @@ -25,34 +25,34 @@ class SearchData
switch (APPLICATION_ENV) {
case 'production':
if ($type == 'sort') {
return 'http://101.200.31.165/yohosearch/sortgroup.json';
return 'http://search.yohoops.org/yohosearch/sortgroup.json';
// return 'http://101.200.31.165/yohosearch/sortgroup.json';
}
elseif ($type == 'discount') {
return 'http://101.200.31.165/yohosearch/discount.json';
return 'http://search.yohoops.org/yohosearch/discount.json';
// return 'http://101.200.31.165/yohosearch/discount.json';
}
elseif ($type == 'recent') {
return 'http://101.200.31.165/yohosearch/recent.json';
return 'http://search.yohoops.org/yohosearch/recent.json';
// return 'http://101.200.31.165/yohosearch/recent.json';
}
elseif ($type == 'suggest') {
return 'http://101.200.31.165/yohosearch/suggest.json';
return 'http://search.yohoops.org/yohosearch/suggest.json';
// return 'http://101.200.31.165/yohosearch/suggest.json';
}
else if($type == 'new-shelve') {
return 'http://101.200.31.165/yohosearch/new-shelve.json';
return 'http://search.yohoops.org/yohosearch/new-shelve.json';
// return 'http://101.200.31.165/yohosearch/new-shelve.json';
}
elseif ($type == 'shop') {
return 'http://101.200.31.165/yohosearch/shops.json';
return 'http://search.yohoops.org/yohosearch/shops.json';
// return 'http://101.200.31.165/yohosearch/shops.json';
}
elseif ($type == 'brand') {
return 'http://101.200.31.165/yohosearch/brand/list.json';
return 'http://search.yohoops.org/yohosearch/brand/list.json';
// return 'http://101.200.31.165/yohosearch/brand/list.json';
}
return 'http://101.200.31.165/yohosearch/search.json';
return 'http://search.yohoops.org/yohosearch/search.json';
// return 'http://101.200.31.165/yohosearch/search.json';
case 'preview':
... ...
[memcached]
master.hosts=192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
slave.hosts=192.168.166.16:12112,192.168.166.17:12112,192.168.166.18:12112
session.hosts=192.168.166.16:12111,192.168.166.17:12111,192.168.166.18:12111
master.hosts=192.168.166.16:12111,192.168.166.17:12111
slave.hosts=192.168.166.16:12112,192.168.166.17:12112
session.hosts=192.168.166.16:12111,192.168.166.17:12111
[redis]
servers.hosts=127.0.0.1:6379
\ No newline at end of file
... ...