Questions tagged [cache]
The cache tag has no usage guidance.
53
questions
2
votes
3
answers
58
views
Custom javascript file is not refreshed
I embedded a JavaScript file inside a custom extension via the buildForm hook. The file gets loaded and does its job, however it is not reloaded reliably after an update. When I upload a new version ...
1
vote
1
answer
38
views
How to preserve the location of custom reports in the navigation menu?
Newbie dev question. I have created custom navigation menus in the CiviCRM UI as a way of categorizing the dozens of custom reports (SearchKit + Afforms) my client requires.
I'm finding, however, that ...
1
vote
1
answer
16
views
Do we need to restore civicrm_cache in upgrades?
when we upgrade to newer versions of civicrm, do we need to restore records from the civicrm_cache in the old version to the new one? Thanks
3
votes
3
answers
147
views
ServiceNotFoundException for "spec_gatherer" on CiviCRM 5.55+ when hosting with Kinsta
with recent versions of CiviCRM (WordPress), I am getting fatal errors for all back-end/wp-admin requests, when hosting with Kinsta.com, related to an unhandled Service Not Found Exception within Civi....
0
votes
0
answers
44
views
Problems with file permission and ownership at civicrm/templates_c
I always set my file permissions under the templates_c folder like in the Question to username:www-data and the permissions to 770. It runs fine on other systems, but I have a system which is only ...
0
votes
1
answer
18
views
Can I delete all the extension.json files in my civicrm/upload/cache folder?
There's a lot of these extensions.json files in sites/default/files/civicrm/upload/cache, some with really old dates, but nothing seems to be newer than June 2022. Can I delete them?
1
vote
0
answers
25
views
Form Builder cache
is it possible to disable or delete the formbuilder cache only?
I currently delete the full cache to update the formbuilder view, what is really slow on my side.(Drupal7)
0
votes
2
answers
74
views
cleanup caches changes file permissions
My site (on a VPS running CPanel, CiviCRM 5.49.3, Drupal 9.3.14) currently has file permission issues. This hasn't always been the case, and I don't know the in initial cause for the problem.
Due to ...
0
votes
1
answer
21
views
CIVICRM_TEMPLATE_COMPILEDIR / template_c folder becomes too large. How to empty it periodically?
We realized that the folder which is set in CIVICRM_TEMPLATE_COMPILEDIR (in our case as per default: template_c) became way too large. From time to time it grew so much that we needed to empty it ...
1
vote
1
answer
49
views
Rebuild Smart Group Cache - One of parameters (value: 28,55,57) is not of the type Int
Running 5.47.1 at the moment on latest version of WP. I've been getting this error repeatedly:
Finished execution of Rebuild Smart Group Cache with result: Failure, Error message: One of parameters (...
0
votes
0
answers
45
views
Why does W3 Total Cache serve cached pages to logged in users (Wordpress)?
I'm using a contribution shortcode in a Wordpress page. I need the HTML/XML request to never load from cache for both logged-in and anonymous users.
In W3 Total Cache, I have the "Don't cache ...
2
votes
1
answer
56
views
CiviCRM Smart Group Cache SQL Collation Error
Running CiviCRM 5.32.2 on Drupal 7, PHP 7.3, MySQL 8, Apache2, Ubuntu Server 20.04.
This instance of CiviCRM has just been migrated from another server and the migration has largely gone well.
However,...
1
vote
1
answer
43
views
Redis running on socket?
Am I right to think that Redis should be configured with a TCP port to work with CiviCRM?
I would like to use the Unix socket option.
2
votes
3
answers
194
views
Custom fields sometimes missing from profile, until flushing caches
On civicrm 5.20.1 under WordPress, we have added two custom fields to the Registration Info profile (gid=12). We've added that profile to the Online Registration config for one event.
Now and then, ...
1
vote
2
answers
288
views
Errors involving /wp-content/plugins/civicrm/civicrm/CRM/Extension/ClassLoader.php
Whenever I try to install/uninstall CiviCRM extensions or run Cleanup Cache, I consistently receive this error:
Warning:
require(/home/xxxxxxxx/public_html/wp-content/uploads/civicrm/templates_c/...
1
vote
0
answers
44
views
Setting CiviCRM to NoCache doesn't work
I'm having an issue whereby clearing Civi cache is the only way to make some fields visible on a Drupal 7 user profile. I've tried to debug the issue and it seems to be caused by anonymous users ...
2
votes
1
answer
47
views
Everything In CRM is Slow - Errors With CRM_Contact_BAO_GroupContactCache
After a database was corrupted and reloaded from a backup.
Looking at the error log this appears to be where CiviCRM is hanging.
CRM_Contact_BAO_GroupContactCache::load(Object(CRM_Core_DAO))
Here ...
1
vote
0
answers
127
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
0
answers
106
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 '...
2
votes
1
answer
45
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.'...
3
votes
2
answers
66
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
1
answer
188
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 ...
2
votes
3
answers
649
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&...
1
vote
1
answer
68
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
1
answer
20
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
3
answers
124
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
4
answers
252
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 ...
3
votes
0
answers
74
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
1
answer
42
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 ...
1
vote
2
answers
166
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 ...
4
votes
1
answer
350
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 ...
3
votes
1
answer
62
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 ...
1
vote
2
answers
133
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 ...
4
votes
3
answers
248
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....
2
votes
1
answer
119
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 ...
3
votes
1
answer
108
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 ...
4
votes
1
answer
94
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
2
answers
144
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 ...
2
votes
1
answer
170
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
2
answers
100
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 ...
0
votes
1
answer
51
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.
3
votes
4
answers
503
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
1
answer
530
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
...
4
votes
1
answer
218
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?
2
votes
1
answer
227
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 ...
5
votes
2
answers
126
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 ...
1
vote
2
answers
104
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 (...
3
votes
1
answer
43
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
1
answer
143
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
...
5
votes
2
answers
170
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 ...