Yii Framework Forum: huge problem with MemCache - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

huge problem with MemCache pls help! Rate Topic: -----

#1 User is offline   kael 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 140
  • Joined: 13-September 10
  • Location:静岡、 静岡、 日本 と フィリピン

Posted 13 September 2010 - 03:50 AM

g

Attached File(s)


0

#2 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,642
  • Joined: 17-January 09
  • Location:Russia

Posted 13 September 2010 - 03:59 AM

Looks like memcached extension is not installed.
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

#3 User is offline   kael 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 140
  • Joined: 13-September 10
  • Location:静岡、 静岡、 日本 と フィリピン

Posted 13 September 2010 - 04:01 AM

View Postsamdark, on 13 September 2010 - 03:59 AM, said:

Looks like memcached extension is not installed.




thanks! so how do i install it? :)
0

#4 User is offline   kael 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 140
  • Joined: 13-September 10
  • Location:静岡、 静岡、 日本 と フィリピン

Posted 13 September 2010 - 04:14 AM

is this the memcached we're talking about?

http://pureform.word...indows-for-php/
0

#5 User is offline   kael 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 140
  • Joined: 13-September 10
  • Location:静岡、 静岡、 日本 と フィリピン

Posted 13 September 2010 - 05:07 AM

is this proof that i already have memcache installed?

Attached File  memcache.jpg (94.14K)
Number of downloads: 27

or this [earlier after tweaking php.ini]

Attached File  memcache2.jpg (95.04K)
Number of downloads: 24
0

#6 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,642
  • Joined: 17-January 09
  • Location:Russia

Posted 13 September 2010 - 06:49 AM

You have memcache, not memcached. It can be configured in cache config to use memcache or memcached:

http://www.yiiframew...emcached-detail
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

#7 User is offline   kael 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 140
  • Joined: 13-September 10
  • Location:静岡、 静岡、 日本 と フィリピン

Posted 13 September 2010 - 07:27 PM

View Postsamdark, on 13 September 2010 - 06:49 AM, said:

You have memcache, not memcached. It can be configured in cache config to use memcache or memcached:

http://www.yiiframew...emcached-detail



can it be just configured? or do i still have to download a package [like memcache]?
0

#8 User is offline   kael 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 140
  • Joined: 13-September 10
  • Location:静岡、 静岡、 日本 と フィリピン

Posted 13 September 2010 - 07:54 PM

i got it! thanks very much! :) i just quoted this:

'cache'=>array(
            'class'=>'system.caching.CMemCache',
            'servers'=>array(
                array('host'=>'localhost', 'port'=>11225, 'weight'=>60),
            ),
            'keyPrefix'=>'vod_ee_',
            'useMemcached' => true,
        ),


and unquoted this:


'cache' => array(
      'class'=>'system.caching.CFileCache',
      'cachePath'=>'cache',
      ),





or changed
'useMemCached' => true
to
'useMemCached' => false





but everytime i redo this [unquote the first bunch of code and quote the second one] the annoying error [at the very top of this post] shows up again.

now does this affect the site if i go and upload it now into their server with the changes i made?
0

#9 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,642
  • Joined: 17-January 09
  • Location:Russia

Posted 14 September 2010 - 05:22 AM

There are two PHP extensions: memcached and memcache. 'useMemCached' switches between using them. CFileCache uses file cache instead of memcached.
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users