Hello,

When I checked Apache Error Log, I've seen the line I pasted below:

PHP Fatal error: Class 'VarnishCache' not found in drupal7/includes/cache.inc on line 31

Do you know any solution for this error? I've already uninstalled varnish module.

My settings.php is:

//$conf['cache_backends'] = array('sites/all/modules/varnish/varnish.cache.inc');

(commented out)

Comments

heddn’s picture

You might try rebuilding your registry: registry_rebuild

yngens’s picture

Experiencing the same issue on one of the websites. Going to follow heddn's suggestion.

ivanzhu’s picture

Issue summary: View changes

@heddn: I tried drush rr, but not works.
Instead, After I looked into the code about varnish module and cache.inc file.
There is another solution using drush. please backup you database at first:

// These following codes reset drupal cache engine
drush vset cache_default_class DrupalDatabaseCache 
drush vset cache_class_cache_page DrupalDatabaseCache