Skip to content

Commit c0b5119

Browse files
patchback[bot]bcocafelixfontein
authored
[PR #10136/937d92ee backport][stable-9] pickle cache plugin, avoid extra steps in DT (#10143)
pickle cache plugin, avoid extra steps in DT (#10136) * pickle cache plugin, avoid extra steps in DT * clog * Update changelogs/fragments/10136-cache-pickle-json.yml --------- (cherry picked from commit 937d92e) Co-authored-by: Brian Coca <[email protected]> Co-authored-by: Felix Fontein <[email protected]>
1 parent fd8a452 commit c0b5119

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bugfixes:
2+
- pickle cache plugin - avoid extra JSON serialization with ansible-core >= 2.19 (https://github.com/ansible-collections/community.general/pull/10136).

plugins/cache/pickle.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class CacheModule(BaseFileCacheModule):
5757
"""
5858
A caching module backed by pickle files.
5959
"""
60+
_persistent = False # prevent unnecessary JSON serialization and key munging
6061

6162
def _load(self, filepath):
6263
# Pickle is a binary format

0 commit comments

Comments
 (0)