Questions tagged [cache]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
7
votes
1answer
137 views

How to disable cache refresh on Manage Groups page

The Manage Groups page in Civi 4.5+ displays counts of contacts in each group, and in the process refreshes the smart group contact cache. We've turned off this cache elsewhere as it takes 10mins to ...
5
votes
2answers
91 views

Our dashboard reports are inaccurate - caching issue?

We have a number of dashlets set up for various users to monitor what's going in in CiviCRM. Sometimes data is missing though. We run the report the dashlet is based on, and the data does show up ...
5
votes
2answers
140 views

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

I've seen from a different question a suggestion to use CRM_Core_Invoke::rebuildMenuAndCaches() as the "granddaddy" of all cache flushing. However, I'd like to know if this is only clearing the cache ...
5
votes
2answers
86 views

How to clear pseudoconstant cache?

I find that if I create a new tag via the api, and then try to attach it to a contact with the entity_tag api, it will sometimes fail with the message "'##' is not a valid option for field tag_id". ...
4
votes
1answer
57 views

How to let extension users choose cache system?

CiviCRM contains some useful caching infrastructure (confluence wiki and related question). If I am creating a module and I would like to allow users to override the default Civi::cache() ...
4
votes
1answer
125 views

How can I use CiviCRM's cache table?

When developing an extension, I'd like to cache some data to avoid the expense of re-calculating it. Is there a civicrm version of the Drupal's caching interface for developers?
4
votes
2answers
115 views

templates_c cache files not being deleted

This is a problem I've had for three or four years, but never solved. I send a monthly mailing to about 50k contacts using CiviMail. Each mailing is scheduled using the standard CiviCRM job scheduling....
4
votes
2answers
104 views

Is it possible in CiviCRM to change extension of cached php files from .php to something else (e.g. .php_ or .txt)?

Is it possible in CiviCRM to change extension of cached php files from .php to something else (e.g. .php_ or .txt)? Our host (WPEngine) does not allow guest users to write to php files on production ...
3
votes
1answer
124 views

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

I work with a CiviCRM install with about 400 smart groups - but only about 30 of them are enabled. I'm seeing slow performance - I'm wondering if anyone knows definitively whether my disabled smart ...
3
votes
1answer
118 views

Fatal Error when accessing Civi in WP Install

My Civi seems to be broken, and I'm really unsure why! This is the error I receive when trying to open the base CiviCRM homepage. Fatal error: Uncaught CRM_Core_Exception: [0: Invalid cache key: Not ...
3
votes
1answer
63 views

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

I discovered some problems with Smart Groups that use IN search criteria for custom fields not showing counts. I have the scheduled job Rebuild Smart Group Cache running. However, only after running ...
3
votes
1answer
36 views

Is the cache field 'expired_date' no longer used?

After inspecting some cache entries in the civicrm_cache table I've come across the field called 'expired_date' which is set to NULL in all cases. The only reference to the field I can find anywhere ...
3
votes
1answer
113 views

Inconsistent ACL behaviour

We recently started using ACLs to fine-tune access to custom fields. Roughly speaking, our setup is: all authenticated users can access custom field group 1 role 1 can access field groups 2, 3, 4 ...
3
votes
1answer
41 views

How long does the cache in the template_c folder last

I use civicrm on WPEngine hosting which does not allow php files to be generated on their live environment (if you are not logged in as admin). Because of this I generate the php files in the ...
3
votes
4answers
236 views

Smart Groups - cannot get smart groups to refresh

I have read as much as I can about smart groups but I am having problems that I am not able to solve. I have a smart group which shows the same SQL as an Advanced Search but they produce different ...
3
votes
1answer
463 views

4.6.12 to 4.7.1 upgrade causes problems with directories, update paths and clear cache

This issue has been asked in two other threads specifically: 4.6.10 to 4.7.1 upgrade woes 4.6.10 to 4.7.1 upgrade woes Upgrade to 4.7.1 results in blank page Upgrade to 4.7.1 results in blank page ...
3
votes
2answers
31 views

Extension settings lost on upgrade - known issue?

On a couple of my own extensions and some that are not my own, I've seen that the extension settings go missing immediately upon upgrading the extension. These extensions all define settings metadata ...
3
votes
0answers
55 views

GDPR: How to stop smarty cache entries containing contact name being created?

Under templates_c, a lot of .php files are being created that contain things like the following: <?php /* Smarty version 2.6.30, created on 2018-04-27 00:20:41 compiled from string:...
2
votes
3answers
146 views

Is there a direct way to clean the Civi Cache?

Cleaning the civi cache updates the Smart Groups immediately (instead of waiting 5 minutes). Is there a way to clean the civi cache directly (instead of Menu>Administer>SystemSettings>Cleanupcache&...
2
votes
2answers
65 views

Clean Up Caches and Update Paths

Running CiviCRM 4.3.8 on Drupal 7.37 (for now, but we're in the long process of a major upgrade of our website). Often I have to update the paths because they revert to a different docroot which may ...
2
votes
1answer
146 views

Scheduled Reminder Email is Empty

We are using CiviCRM 4.6 on a live site we built with WordPress 4.6.1. We ran into the problem explained below. Any help is much appreciated. I have set up a scheduled reminder to send reminder ...
2
votes
1answer
76 views

How do I get CiviCRM working with varnish on wordpress?

When I activate CiviCRM I get the following notices regarding varnish status: Varnish is running but cannot cache. A plugin or theme is setting a PHPSESSID cookie on every pageload. This makes ...
2
votes
1answer
184 views

Civicrm upgrade problem - will clearing cache help?

Trying to run upgrade script on wordpress civicrm gives me a new login screen followed by another chance to click the upgrade button follow by another login screen. civicrm 4.6.9 from 4.6.8 wordpress ...
2
votes
1answer
38 views

“view contact” not updating when changes are made

I do all my backend entry for CiviCRM on my "View Contact" page, but nothing I do is visible for about a day and it is causing a lot of stress for my staff. If we go to the Membership tab and add a ...
2
votes
1answer
114 views

How cleanup civicrm database

I've got a civicrm database of 1.4 Go (information available in PhpMyAdmin) 1Go is used by civicrm_activity table I would like to know if have to clean, purge the database to reduce its size, cache or ...
2
votes
0answers
18 views

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

Has someone tried it? On a 1st try I've noticed extensions stop working. For example if I set define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/tmp/civicrm/templates_c/'); would it work? (instead of ABSPATH.'...
1
vote
2answers
95 views

Groups correctly set but showing wrong - caching problem?

I'm using CiviCRM 4.6.5, Joomla 2.5.28 (yes, I know...), with 70k contacts and 25 groups (one of which is a smart group). Since the upgrade to 4.5.6, contacts started to display the wrong groups (...
1
vote
3answers
78 views

500 Errors on CiviCRM 5.1.2 with Varnish on WordPress

I'm brand-new to CiviCRM and really appreciate all the amazing work that's been done on this project! I've been working on our implementation on a test server for a while now, but when I started ...
1
vote
2answers
89 views

Count data for smart groups is not currently calculated

When I go to "manage groups", some of my smart group counts are listed as "unknown" and the notification "Count data for smart groups is not currently calculated" appears. Does anyone know how to ...
1
vote
2answers
104 views

SOLVED is Civicrm compatible with Litespeed technology?

I just upgrade my service provider from apache to litespeed webserver and Civicrm stop to work. The error is in a lot of page: Sorry but we are not able to provide this at the moment. We can't load ...
1
vote
1answer
49 views

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

We're using 5.4.1 on Wordpress 4.9.8 with php 5.6.34. The following issue seems to have started with 5.3.x and we still cannot solve it. When we create an activity, we include: a hyperlink in the ...
1
vote
1answer
19 views

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

After upgrading to 5.3.1 and clearing out templates_c and doing two drush cc all we are still finding sites where then menu link to eg CiviDiscount or LogViewer just show the civi home page What is ...
1
vote
2answers
80 views

How to clear hook cache

When I am changing a query or logic in my hook, I have to reinstall the entire module so then only the updated logic / code works in civicrm. Is there a settings to clear the cache or something I ...
1
vote
0answers
18 views

Civicrm on Drupal: broken JS and CSS or Asset Caching enabled

If I enable asset caching in CiviCRM everything works fine. If I disable it, the administration menu is gone from the top to a list that's beneath the page content and a lot of JS is broken too. The ...
1
vote
0answers
20 views

Class 'CachedCiviContainer' not found in Civi\Core\Container loadContainer()

I am using CiviCRM 5.9 and Drupal 7.56 hosted in the pantheon server. Yesterday, suddenly my site went down. I have checked with drupal error log, it is showing php error : Class '...
0
votes
1answer
45 views

Group contact cache deadlocks

I have tried to activate the job specified in an entry in Eileen's blog but get the following error.