#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 |
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)
Change History (3)
by , 14 years ago
Attachment: | add-unicode.patch added |
---|
comment:1 by , 14 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
This is already reported in #13686, I believe.