Skip to main content
Share Your Experience: Take the 2024 Developer Survey
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 -...
Tim Otten's user avatar
  • 5,684
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 ...
Alan Dixon's user avatar
  • 6,861
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 ...
Jon G - Megaphone Tech's user avatar
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 ...
Chris Burgess's user avatar
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.
Soroush Zo's user avatar
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 ...
Christia's user avatar
  • 2,457
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.
Xavier's user avatar
  • 10.2k
3 votes
Accepted

Rebuild Smart Group Cache - One of parameters (value: 28,55,57) is not of the type Int

The issue is that one of your smart groups is broken. The low-tech approach to figuring out which is to disable half of your smart groups, run the "Rebuild Smart Group Cache" scheduled job (...
Jon G - Megaphone Tech's user avatar
3 votes

CIVICRM_TEMPLATE_COMPILEDIR / template_c folder becomes too large. How to empty it periodically?

The action Job.cleanup has a parameter tplCache which is set to 0 by default. When the action is called with the parameter set to 1 the folder gets emptied. Create a new scheduled job Choose "...
Tobias Krause's user avatar
3 votes
Accepted

Can I delete all the extension.json files in my civicrm/upload/cache folder?

Yes if you're on 5.52 or later. (Or even if you're not it's ok - it will just make a new one when it needs.) Storage was changed to SQL storage in 5.52. See https://github.com/civicrm/civicrm-core/...
Demerit's user avatar
  • 23.2k
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 ...
Paul Kleingeld's user avatar
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 ...
Jon G - Megaphone Tech's user avatar
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.
Joe Murray's user avatar
  • 6,741
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 ...
slbradio's user avatar
  • 141
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 ...
Aidan's user avatar
  • 13.5k
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 ...
Tamar Meir - Cividesk's user avatar
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 ...
Xavier's user avatar
  • 10.2k
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 ...
Jon G - Megaphone Tech's user avatar
2 votes
Accepted

templates_c cache files not being deleted

Investigating this one too. The 'Clean-up Temporary Data and Files' doesn't clean the tplCache by default (oddly). You can make it do so by adding it to the command parameters:
Andrew West's user avatar
  • 2,044
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 ...
Pradeep Nayak's user avatar
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 ...
Alan Dixon's user avatar
  • 6,861
2 votes

CiviCRM Smart Group Cache SQL Collation Error

Okay, this appears to be an issue with running CiviCRM on MySQL 8. I downgraded to MySQL 5.7 and it's now working. Maybe worth investigating further.
Rich Smith's user avatar
2 votes
Accepted

ServiceNotFoundException for "spec_gatherer" on CiviCRM 5.55+ when hosting with Kinsta

For us Kinsta hosting caching was the issue. Able to upgrade once they enabled opcache.save_comments in the Nginx server cache
LesleyJill's user avatar
2 votes
Accepted

Missing Relationship Cache Data fails to rebuild cache with DB error

The issue was that a row in the end_date column of the civicrm_relationship table had an incorrect date value of '0000-00-00' when it should have been NULL. I tracked this by watching the mysql log ...
macMark's user avatar
  • 31
1 vote

Errors involving /wp-content/plugins/civicrm/civicrm/CRM/Extension/ClassLoader.php

The hosting company sent me this instruction. It worked, and I'm back in business! "You need to add this in your .htaccess file to avoid problem, it is caching related:" php_flag opcache....
Día's user avatar
  • 331
1 vote
Accepted

is it possible civicrm templates_c files to be stored under the server /tmp folder?

Just don't use WPEng hosting for civicrm.
Stoycho's user avatar
  • 428
1 vote

Is there a direct way to clean the Civi Cache?

There are a variety of methods, but the easiest is probably to download cv and use cv flush.
Jon G - Megaphone Tech's user avatar
1 vote

Why have menu links to extensions eg DataViz, CiviDiscount, LogViewer now give the civi home page

We know one quick fix is to resave the Directory page civicrm/admin/setting/path?reset=1 (Note: we tested with making a minor change then saving but it may work with just using Save) Looking for ...
petednz - fuzion's user avatar
  • 28.3k
1 vote

500 Errors on CiviCRM 5.1.2 with Varnish on WordPress

Just thought I'd follow up on this and let folks know where I wound up -- after a lot of research and some outside assistance it turns out that it was actually the photo slider plugin (Slider ...
Matt Woodward's user avatar
1 vote
Accepted

500 Errors on CiviCRM 5.1.2 with Varnish on WordPress

You can certainly try to set up rules to bypass the reverse proxy, but at the same time, I think it will be more cost-effective to change hosting. Varnish problems aren't going to be the only issue ...
Andie Hunt's user avatar
  • 7,462

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