It appears that authcache will use memcache during it's page_cache_fastpath() function. However this occurs during early in the bootstrap DRUPAL_BOOTSTRAP_EARLY_PAGE_CACHE before the variables are loaded. However memcache uses variables in its routines to determine if the content is still valid.

// Determine when the current table was last flushed.
$cache_flush = variable_get("cache_flush_$table", 0);

This means when you edit a page, memcache will invalidate the page cache by setting the cache_flush_page_cache variable.
But when you're loading a page authcache will use the memcache and memcache will serve old content.
// Determine when the current table was last flushed.
$cache_flush = variable_get("cache_flush_$table", 0);

This means when you edit a page, memcache will invalidate the page cache by setting the cache_flush_page_cache variable.
But when you're loading a page authcache will ask memcache for the content, it will check the cache_flush_page_cache which is unset and so return old content.

Comments

michalmajzlik’s picture

I tried two times authcache module in different webs and i had same problem. After update node or after writeing comment, page cache "was not updated". So authenticated user get old version of page cache. I tried combine authcache with this three caching systems (db, apc, memcache) and still this problem.
So i tried run authcache in new clear drupal installation, because in those 2 webs were much modules and own themes. In this new clear installation was nothing, just authcache module, theme was garland. I run authcache, create node and then login under authenticated user. I watched behaviour, tried much situation and a i can said, authcache still serve me old content.

Jonah Ellison’s picture

Assigned: Unassigned » Jonah Ellison
Status: Active » Fixed

Fixed memcache issue in RC2. Drupal variables are initialized before cache_get is called if memcache.inc cache handler used.

pedrofuture, since your issue is happening on other caching systems, please open a new issue (or join #577386: Authentication Persistence) and let me know what web server you are using, PHP version, and OS. thanks.

Status: Fixed » Closed (fixed)

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