#1488592 closed Bugs (fixed)

memcache session storage, workaround bug with memcache pecl extension

Reported by: sthen Owned by:
Priority: 5 Milestone: 0.8.1
Component: PHP backend Version: git-master
Severity: normal Keywords:
Cc:

Description

Re ticket #1488384 and I think some others, various people have had problems with memcache being unable to delete keys. It's clearly visible when you sniff the traffic to the memcache server:

delete vgjkahooafjpmp08pl3mjd4sr1 1
CLIENT_ERROR bad command line format.  Usage: delete <key> [noreply]

I've tracked this down. Old memcached versions had a parameter to the "delete" command specifying a timeout which is now rejected. There was some backwards-compatibility fix in memcached which ignores a value 0 in this position but some versions of the memcache PECL extension default to using 1 here. This was supposedly fixed but the fix appears to be incomplete; on occasion this has still been seen with the latest version.

The attached diff sets the value explicitly when delete is used for session and imap cache storage, overriding the default, which fixes the issue for me.

Attachments (1)

rcube-memcache-delete.diff (1.2 KB) - added by sthen 10 months ago.
rcube-memcache-delete.diff

Download all attachments as: .zip

Change History (3)

Changed 10 months ago by sthen

rcube-memcache-delete.diff

comment:2 Changed 10 months ago by alec

  • Component changed from Core functionality to PHP backend
  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.