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) »
  • Developer Discussion »
  • Scalability (Moderator: Donald Lobo) »
  • When to use memcache
Pages: [1]

Author Topic: When to use memcache  (Read 4280 times)

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
When to use memcache
April 14, 2012, 03:45:17 pm
I understand that enabling memcache can improve Civi's performance in some circumstances.
I'm unclear about what those circumstances are. Is there a certain db size threshold below which it does not make sense to use it?
I'm currently working on a site with only 10k contacts and 1 gig of ram on a VPS. Is this too small to bother with memcache?
Are there any circumstances in which memcache will degrade performance?
What are the recommended cache settings?
« Last Edit: April 14, 2012, 03:49:50 pm by colemanw »
Try asking your question on the new CiviCRM help site.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: When to use memcache
April 14, 2012, 11:24:14 pm
Hey Coleman - if you don't get answers here I'm told lcdweb or koumbit are good people to ask
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: When to use memcache
April 16, 2012, 04:09:31 pm
I have enabled memcache on a server, and then 'flipped the switch' to CiviCRM memcache = 1 only once.  The experience was without obvious error, but also without obvious noticeable improvement. 

The environment was a 2GB Debian dual-core dedicated server - quite fast.

I do see things that I wonder 'is that because of memcache?' on occasion such as newly created tags not showing up on Contact tag tabs, or in Drupal Views for an hour or more.  I do not know if these are memcache related or not.    This is my limited experience.


Try CiviTeacher: the online video tutorial CiviCRM learning library.

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: When to use memcache
April 16, 2012, 10:59:07 pm
Our host has used Memcache on our site, and there was definitely an improvement performancewise. Unfortunately it also meant that our site kept flipping back to English whilst it should be in Dutch. So we posted on the forum and switched off Memcache....
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: When to use memcache
April 17, 2012, 01:25:49 am
@Erik,

Mathieu has worked to use native gettext instead of a php version.

This should improve things. Would be great if you could test for nl

http://issues.civicrm.org/jira/browse/CRM-9976

-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

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: When to use memcache
April 17, 2012, 07:46:17 am

Erik:

we should fix the multi-lingual memcache issue. Wanna ping me on IRC and we can get a debugging and fixing session going

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

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: When to use memcache
April 17, 2012, 07:59:27 am
lobo: no because it is way over my head  and i will not know what I am talking about :) What I will do though is get our hosting guy to contact you on IRC.
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: When to use memcache
April 18, 2012, 02:51:26 am
Lobo, we (techie Bas and me) will ping you on IRC at 16.00 (our time) today....
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • Scalability (Moderator: Donald Lobo) »
  • When to use memcache

This forum was archived on 2017-11-26.