Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#13791 closed (duplicate)

cache.add encodes values as utf-8, cache.set does not

Reported by: Jeff Balogh Owned by: nobody
Component: Core (Cache system) Version: 1.2
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


#11012 changed cache.set for the memcached backend to stop forcing value.encode('utf-8'), but cache.add still does encoding. This means you receive a unicode object with cache.set and a str for the same object with cache.add. Attached patch removes encoding from cache.add.

Attachments (1)

add-unicode.patch (1.2 KB) - added by Jeff Balogh 9 years ago.

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by Jeff Balogh

Attachment: add-unicode.patch added

comment:1 Changed 9 years ago by Karen Tracey

Resolution: duplicate
Status: newclosed

This is already reported in #13686, I believe.

comment:2 Changed 7 years ago by Jacob

milestone: 1.3

Milestone 1.3 deleted

Note: See TracTickets for help on using tickets.
Back to Top