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 (Moderator: Dave Greenberg) »
  • Emptying Civicrm_cache table
Pages: [1]

Author Topic: Emptying Civicrm_cache table  (Read 1969 times)

bpmccain

  • I post frequently
  • ***
  • Posts: 255
  • Karma: 5
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.2
  • PHP version: 5.2
Emptying Civicrm_cache table
June 28, 2011, 11:53:40 am
I am moving some databases around, and my civicrm database is a decent size, but the majority of this is taken up by the civicrm_cache table (roughly 80%, or 40MB out of 50MB).

What is contained in the table? What would happen if I emptied it?

Brian

david_de

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.0.7
  • CMS version: Drupal 7
  • MySQL version: 5.0.91
  • PHP version: 5.2.9
Re: Emptying Civicrm_cache table
September 17, 2011, 11:36:23 am
If you check the migration information it says to ignore that table and several others.
http://wiki.civicrm.org/confluence/display/CRMDOC40/Moving+an+Existing+Installation+to+a+New+Server+or+Location

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Emptying Civicrm_cache table
September 17, 2011, 11:45:12 am
Quote from: bpmccain on June 28, 2011, 11:53:40 am
What is contained in the table?

Cached data.

Quote from: bpmccain on June 28, 2011, 11:53:40 am
What would happen if I emptied it?

This should be safe to do at any time actually.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Luciano S.

  • I post occasionally
  • **
  • Posts: 83
  • Karma: 2
  • iXiam Team Leader
  • CiviCRM version: 4.2+ / 4.3+ / 4.4+
  • CMS version: Drupal
  • MySQL version: 5.1+ / 5.5+
  • PHP version: 5.3+ / 5.4+
Re: Emptying Civicrm_cache table
August 27, 2012, 07:42:16 am
Is it a good idea to truncate civicrm_table table periodically?
Does it have any cons doing it?

It grows a lot and after 1 and half year using civicrm site a v3.4.8, that table size is 1.1Gb from 1.5Gb database


Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Emptying Civicrm_cache table
August 27, 2012, 07:47:59 am
You are referring to the civicrm_cache table. It should remove old records by itself, but if yours is so big, then definitely truncate it yourself. It should not have any adverse effects as far as I know.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Luciano S.

  • I post occasionally
  • **
  • Posts: 83
  • Karma: 2
  • iXiam Team Leader
  • CiviCRM version: 4.2+ / 4.3+ / 4.4+
  • CMS version: Drupal
  • MySQL version: 5.1+ / 5.5+
  • PHP version: 5.3+ / 5.4+
Re: Emptying Civicrm_cache table
August 28, 2012, 03:50:13 am
yes Hershel, I meant civicrm_cache  :)
I will do clear that table then.

Tx!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Emptying Civicrm_cache table

This forum was archived on 2017-11-26.