CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Memcache
Pages: [1]

Author Topic: Memcache  (Read 2331 times)

dflasse

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 0
    • Tout peut arriver
Memcache
May 30, 2007, 06:40:13 am
Hi,

Is there any documentation on how to enable memcache in CiviCRM?

Damien

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Memcache
May 30, 2007, 07:32:25 am
Hey,

If you're talking about PHP's memcache, we don't use it, therefore no documentation.

m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

dflasse

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 0
    • Tout peut arriver
Re: Memcache
May 30, 2007, 07:35:12 am
OK. Many thanks for your quick answer.

D.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Memcache
May 31, 2007, 09:39:17 am
Actually memcache integration was added for 1.7 - and if enabled on your server will be used in a several spots to improve performance. Usage info is here:

http://civicrm.org/node/126
Protect your investment in CiviCRM by  becoming a Member!

dflasse

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 0
    • Tout peut arriver
Re: Memcache
May 31, 2007, 11:57:05 pm
Thank you Dave

Actually, I read this article but since it was in the blog, I thought it was still experimental. Would you give me an example of the civicrm.setting.php file with the constant defined? I don't want to mess up my installation with bad directives.

Cheers,

Damien

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Memcache
June 01, 2007, 02:23:58 am
Ahhh... Sorry, I quickly checked out docs and dev list archives to make sure I'm answering right, but I forgot to check the blog. Sorry for misinformation.

m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Memcache
June 01, 2007, 07:01:29 am
Quote from: dflasse on May 31, 2007, 11:57:05 pm
Actually, I read this article but since it was in the blog, I thought it was still experimental. Would you give me an example of the civicrm.setting.php file with the constant defined? I don't want to mess up my installation with bad directives.

Damien - I think you would add this line to civicrm.settings.php - but I've asked lobo to confirm...

Code: [Select]
define( 'CIVICRM_USE_MEMCACHE'  , 1 );

Protect your investment in CiviCRM by  becoming a Member!

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Memcache
June 01, 2007, 11:38:11 am

memcache is primarily used for the config object and all the "database constants" (location types, gender etc) to retrieve from memory rather than do a db query. Note that if you change either the config or the  options, u'll need to restarted your memcache server


In addition to the below u also need:

1. php compiled with the memcached extension
2. the memcache install

if your install is different from the default, u will need to hack:

CRM/Utils/Cache.php and change the host/port/timeout values

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Memcache

This forum was archived on 2017-11-26.