According to the readme we need to use $conf in settings.php like this:

$conf['cache_backends'][] = 'sites/all/modules/contrib/memcache/memcache.inc';
$conf['cache_default_class'] = 'MemCacheDrupal';
$conf['cache_class_cache_form'] = 'DrupalDatabaseCache';

However, the MemCacheDrupal is not loaded. The solution is to correctly add files[] = memcache.inc to memcache.info file.

CommentFileSizeAuthor
#1 2000068-1.patch270 bytesAnonymous (not verified)

Comments

Anonymous’s picture

StatusFileSize
new270 bytes

Patch attached.

markpavlitski’s picture

Priority: Major » Normal

@morningtime Please can you explain what you mean when you say 'However, the MemCacheDrupal is not loaded'? Do you receive any errors or warnings with your current setup?

Although the patch in #1 won't hurt, the recommendation is to not enable the memcache module, so the change will mostly be ignored.

Unfortunately the change is also not enough to autoload the class, so the $conf setting will still be required:

$conf['cache_backends'][] = 'sites/all/modules/memcache/memcache.inc';
Anonymous’s picture

@#2 I think you misunderstood.

Of course the $conf lines are requried. But if you never actually load the memcache.inc anywhere, how is it supposed to work?
Without it, you get:

Fatal error: Class 'MemCacheDrupal' not found in /includes/cache.inc on line 31
On all pages. Pretty major I would say?

Either you must use include_once() or my patch.

Yes I have the memcache extension enabled for checking updates.

markpavlitski’s picture

The file is loaded by Drupal during the bootstrap process.

See _drupal_bootstrap_page_cache().

Please can you post your entire settings.php if you are still experiencing the issue?

jeremy’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

Marking as a support request; waiting for feedback.

markpavlitski’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

No activity for 2 weeks. Marking as closed.