#885478: Improve Memcache as installation profile friendly allowed memcache_admin to be installed without memcache being set up in settings.php

The new memcache.module also allows this.

Both show warnings on the status report on runtime, but I'm a bit concerned that people new to memcache who don't understand how the backends work are going to end up enabling the module then forgetting about it, thinking that will automatically switch to using memcache.

So it might be worth adding a drupal_set_message() on module install (and maybe a hook_help() too) so that there's an additional nudge to set it up properly.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

erikwebb’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
markpavlitski’s picture

Status: Active » Needs review
FileSize
2 KB

The current hook_requirements will pass if dmemcache_set() exists, i.e. $conf['cache_backends'][] = 'sites/all/modules/memcache/memcache.inc'; has been put in settings.php, however this doesn't guarantee that memcache is configured and working.

This patch adds some additional checks to confirm that memcache is configured correctly.

Jeremy’s picture

Issue summary: View changes
Status: Needs review » Fixed

I ended up reworking this a lot, but hopefully people will find the module a little easier to install with more helpful and consistent errors. As @catch suggested, we now throw a warning if the module is enabled but Memcache isn't working for any of a variety of reasons.

Committed here:
http://drupalcode.org/project/memcache.git/commitdiff/d9e5e35

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.