Closed (fixed)
Project:
Cache Graceful
Version:
7.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Nov 2012 at 01:57 UTC
Updated:
30 Nov 2012 at 18:40 UTC
The project page Drupal 7 settings currently suggest putting the following in your settings.php file:
$conf['cache_default_class'] = 'GracefulCache';
However, this should be:
$conf['cache_default_class'] = 'CacheGraceful';
Comments
Comment #1
geerlingguy commentedOf course, either way I go, I get the following error message :(
Comment #2
gielfeldt commentedIs correct. The class is located in cache_graceful.inc.
However, you also need to instruct Drupal's cache mechanism to load the cache_graceful.inc file:
If you get this error:
With this setting:
Then my first assumption would be that you are looking at the wrong settings files, since CacheGraceful != GracefulCache.
Are you using an opcode cache? These can play tricks on you, if it's not configured to reload files that have changed.
There's a file in the cache graceful module called "CacheGraceful.class.php", but that's an old obsolete file, which I've forgot to remove. It is not used.
Comment #3
geerlingguy commentedHmm... I've set the following two configuration variables, and now I'm getting the following:
1. If I set
cache_backendstosites/all/modules/cache_graceful/cache_graceful.inc, I get the following error on every page load:2. If I also set
cache_default_classtoGracefulCache, I get the following error (and a WSOD):I can't seem to get the module working one way or another... I have APC enabled, but I have apc.stat set to 1. I've also tried restarting apache/php, to no avail.
Comment #4
geerlingguy commentedAh, nevermind; I just realized that I needed to pass in the cache_backend as an array, and not a string. Both problems fixed.
One other note—shouldn't cache_graceful.inc be added to the files[] array in the .info file so it's added to Drupal's class registry?
Comment #5
gielfeldt commentedHi Jeff
Ok. Great.
Not sure if it's necessary to add it to the registry through files[], since the "cache_backends" works as it's own "registry". But maybe it's a good idea, I'll look into it.
Thanks
Comment #6
geerlingguy commentedSounds good!