Opened 6 years ago

Closed 6 years ago

Last modified 5 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: UI/UX:

Description

#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 6 years ago.

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by Jeff Balogh

Attachment: add-unicode.patch added

comment:1 Changed 6 years ago by Karen Tracey

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Resolution: duplicate
Status: newclosed

This is already reported in #13686, I believe.

comment:2 Changed 5 years ago by Jacob

milestone: 1.3

Milestone 1.3 deleted

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