Hot answers tagged

6 votes
Accepted

How to disable cache refresh on Manage Groups page

The manage groups page does not force a refresh of the smart group cache but there is a button to do so on the right-hand side: Without clicking that button, what it does do is count the number of ...
  • 16.3k
5 votes
Accepted

Our dashboard reports are inaccurate - caching issue?

This one also throws me occasionally. You should reduce the dashboard cache timeout setting to '0' in /civicrm/admin/setting/misc?reset=1 Then it will load the reports dynamically each time you ...
  • 826
4 votes
Accepted

When the smart group cache is regenerated, are disabled smart groups regenerated?

Pretty sure that we only consider active groups to regenerate the cache: CRM/Contact/BAO/GroupContactCache.php also most smart groups are regenerated on demand. The scheduled job invokes the loadAll ...
  • 3,803
4 votes
Accepted

How to let extension users choose cache system?

1. CRM_Utils_Cache::create() When looking through the list of cache drivers, you see options like Memcache, Memcached, and Redis. Generally there's little reason why a deployment would use all three -...
  • 5,599
4 votes

How can I use CiviCRM's cache table?

I found the corresponding reference page here: https://docs.civicrm.org/dev/en/latest/framework/cache/ Looks straightforward: Set a cache value with Civi::cache()->set('mykey', 'myvalue'); Get a ...
  • 6,153
4 votes

templates_c cache files not being deleted

Cache files are cleared by a scheduled job, which isn't enabled by default. Go to Administer menu » System Settings » Scheduled Jobs. Find the row labeled Clean-up Temporary Data and Files. On that ...
3 votes
Accepted

Is there any reason to not run the scheduled job Clean-up Temporary Data and Files every hour?

Check how long it takes to run on your system. if it doesn't take too long, I don't see any reason not to run it hourly.
  • 10.1k
3 votes

Scheduled Reminder Email is Empty

For anyone who may face this issue, it was finally fixed by WP Engine through adding an exception on the firewall for CiviCRM cron URL.
3 votes
Accepted

Clean Up Caches and Update Paths

Our CiviCRM was installed outside of the Drupal root in order to circumvent performance issues with Drupal commons. I have re-engineered so that CiviCRM is now inside the Drupal root and upgraded. I ...
  • 2,457
3 votes
Accepted

Groups correctly set but showing wrong - caching problem?

This sounds very much like https://issues.civicrm.org/jira/browse/CRM-16945 This has only just popped up in testing of 4.6 for my organisation as well.
  • 1,279
3 votes
Accepted

Is the cache field 'expired_date' no longer used?

I had the same reaction when I saw that field -- it doesn't appear to be used. In fact, I don't think it was ever used. Grepping some of the older releases (http://svn.civicrm.org/civicrm/branches/v2....
  • 5,599
3 votes

Inconsistent ACL behaviour

Ugh. This kind of bug is really hard to diagnose. Good call on noticing that memcache caches this behavior. Are you on some kind of host with really aggressive caching by default? WPEngine, for ...
  • 7,367
3 votes
Accepted

How does one flush the non-database cache (such as memcache) from CiviCRM code?

Currently the function CRM_Core_Invoke::rebuildMenuAndCaches does not flush the memory caches, even though it will rebuild the database cache, menus and sessions. In order to also flush the memory ...
  • 500
3 votes
Accepted

How to clear pseudoconstant cache?

You can manually clear caches with civicrm_api3('AnyEntity', 'getfields', array('cache_clear' => 1)); (use any valid entity, it doesn't matter which). However, if you are using the api to create ...
  • 16.3k
3 votes

Fatal Error when accessing Civi in WP Install

Unfortunately, the log message suggests you've hit a limit of your hosting provider. User snachodo_657 already has more than 'max_user_connections' This could have various causes. If your hosting ...
2 votes

Our dashboard reports are inaccurate - caching issue?

Yes, dashlets are cached. However you shouldn't need to re-run individual reports to update the dashlets. Instead, use the link at the top-right of the dashboard page called "Refresh Dashboard Data".
  • 2,808
2 votes

Groups correctly set but showing wrong - caching problem?

Submitted the fix https://github.com/civicrm/civicrm-core/pull/6388 under CRM-16945
2 votes

How to clear pseudoconstant cache?

CRM_Core_PseudoConstant::flush() should do it.
2 votes

How does one flush the non-database cache (such as memcache) from CiviCRM code?

I think the function CRM_Core_Invoke::rebuildMenuAndCaches should also flush the memory caches, and hence call: CRM_Utils_System::flushCache( ); This will make things more consistent and actually ...
  • 3,803
2 votes

Civicrm upgrade problem - will clearing cache help?

The answers here list a few different ways to clear cache: How to clear the caches in WP / Wordpress or Drupal via url? including on WordPress.
2 votes

How do I get CiviCRM working with varnish on wordpress?

A big part of the pages in civi are not public, so as you might serve different pages to every user, they can't be cached. But I think your problem is elsewhere, if you are "alone" on your admin ...
  • 10.1k
2 votes

SOLVED is Civicrm compatible with Litespeed technology?

I am using the webhosting service of Rochen, and they use a LiteSpeed Web Server. Civicrm runs inside a Joomla 3.7.5 website quit okay. (The the current Joomla version of 3.8.2 and Civicrm do not work ...
2 votes

How cleanup civicrm database

civicrm_activity is a legitimate table with legitimate data. You can use the API to mass-delete activities - but only you (and/or your users) can determine what represents data that is reasonable to ...
2 votes
Accepted

How long does the cache in the template_c folder last

It's actually compiling Smarty templates, not PHP pages. There is no timeout on how long they are valid, as the underlying templates don't change.
  • 6,671
2 votes

After creating/saving an activity, re-opening it to edit won't allow links and drop-downs to be changed

I'm happy to report that the original issue was resolved with an update to 5.5.1. With this update made, the errors illustrated in my original post are no longer occurring. Because we've long used ...
  • 141
2 votes

Is there a direct way to clean the Civi Cache?

You will find different ways of clearing cache (as Jon mentions) documented HERE, but I agree with Tony that perhaps the UI would be easier - maybe it's just a question of adding a top menu item on ...
2 votes

Is there a direct way to clean the Civi Cache?

Expanding on Tamar's suggestion: Go to Administer > Customize Data and Screens > Navigation Menu Click Add Menu Item Title: Clear Cache Url: /civicrm/clearcache Parent: leave as Top level, or ...
  • 11.3k
2 votes

Everything In CRM is Slow - Errors With CRM_Contact_BAO_GroupContactCache

There's something wrong with your smart group with an ID of 95. However, this is unlikely to be causing a performance problem, since this query simply isn't running. If you can delete and recreate ...
2 votes

Custom fields sometimes missing from profile, until flushing caches

The only way we could solve this was turning off php opcache in fpm/apache/nginx and cli For other sites with opcache turned off we had to enable schedule job 'Clean-up Temporary Data and Files' with ...
2 votes

Custom fields sometimes missing from profile, until flushing caches

I had this experience with a Drupal 8 site and fixed it by enabling the permission "access custom fields" for anonymous visitors. In our case, the issue was that anonymous visitors couldn't ...
  • 6,153

Only top scored, non community-wiki answers of a minimum length are eligible