I am just getting memcache setup for testing on our system. The README says I need to use PECL memcache 3.0.6+. I have 3.0.5 installed, but no warning about this is raised on the Memcache statistics page or the Status report page. It should raise a warning.

Comments

liam morland’s picture

Status: Active » Needs review
StatusFileSize
new1.55 KB
jeremy’s picture

Status: Needs review » Postponed (maintainer needs more info)

What version of the Drupal memcache module are you using? It sounds like you may be on the much outdated 7.x-1.0 release? You should see the proper warning with the latest release.

liam morland’s picture

Status: Postponed (maintainer needs more info) » Needs review

I am using 7.x-1.3-rc1. Where should I be seeing the error?

PECL memcache 3.0.5 is installed. The problem is that it is too old, not that it is absent.

In any case, I think the statistics page should show a warning because it shows the PECL version number. If it shows the version number, it should warn about versions that are too old.

liam morland’s picture

OK, I see what is happening. dmemcache.inc isn't loaded so it never gets to the version check. I think it should do the version check anyway so that all the issues are identified at once.

jeremy’s picture

Status: Needs review » Closed (works as designed)

How have you configured things that dmemcace isn't being loaded? There's a variety of misconfigurations that can lead to ugly warnings/errors if we try and do too much when we know things are misconfigured (in your case it seems you've not added the necessary cache_backends configuration to settings.php). We try and minimize the risk of an improper configuration breaking a website.

liam morland’s picture

Title: Warn about old version of PECL extension » Provide more warnings about config problems
Status: Closed (works as designed) » Needs review
StatusFileSize
new2.66 KB

Thanks. I had a closer look at the code. Here is a patch that displays more warnings in case of config problems and refers people to the report on the status page.

liam morland’s picture

StatusFileSize
new2.65 KB

Improved version uses module_load_install() instead of module_load_include().

liam morland’s picture

jeremy’s picture

Status: Needs review » Closed (duplicate)

We've recently added quite a bit more debug logging.