When enabling authcache and memcache, I get this error:

Call to undefined function lock_acquire() in /var/www/forum/includes/bootstrap.inc on line 935

One way to resolve it is to modify this code in authcache.inc line 66 - line 71

<?php
// Connect to database if default database cache hander is selected (or memcached which currently requires database access to run variable_initialize)
   
if ($conf['authcache_is_db'] || $memcache == 'MemCacheDrupal') {
      require_once
DRUPAL_ROOT . '/includes/database/database.inc';
      require_once
DRUPAL_ROOT . '/includes/lock.inc';
     
db_set_active();
    }
?>

But I know memcache has a memcache based locking included in memcache-lock.inc, I tried loading that file but it gives me fatal error for re-declaring lock_aquire().

My settings for memcache and authcache are :

<?php
$conf
['cache_backends'][] = 'sites/all/modules/contrib/memcache/memcache.inc';
$conf['cache_backends'][] = 'sites/all/modules/contrib/authcache/authcache.inc';
$conf['cache_default_class'] = 'MemCacheDrupal';
$conf['cache_class_cache_page']      = 'MemCacheDrupal';
?>

Comments

Issue summary:View changes

edit format and spellings

I'm seeing the same issue. I'm noticing however that it only happens if the caches are already empty, at least under my current configuration.

double post...

Status:Active» Closed (fixed)

Resolved as of 7.x-1.1 (see #966152-85: Authcache » Drupal 7 port)

Issue summary:View changes

format