From 937d92ee25b604871cc1189e1c7e25c8e9d1ba3d Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Fri, 16 May 2025 00:59:47 -0400 Subject: [PATCH] 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 Co-authored-by: Felix Fontein --------- Co-authored-by: Felix Fontein --- changelogs/fragments/10136-cache-pickle-json.yml | 2 ++ plugins/cache/pickle.py | 1 + 2 files changed, 3 insertions(+) create mode 100644 changelogs/fragments/10136-cache-pickle-json.yml diff --git a/changelogs/fragments/10136-cache-pickle-json.yml b/changelogs/fragments/10136-cache-pickle-json.yml new file mode 100644 index 0000000000..a527e5c4b7 --- /dev/null +++ b/changelogs/fragments/10136-cache-pickle-json.yml @@ -0,0 +1,2 @@ +bugfixes: + - pickle cache plugin - avoid extra JSON serialization with ansible-core >= 2.19 (https://github.com/ansible-collections/community.general/pull/10136). diff --git a/plugins/cache/pickle.py b/plugins/cache/pickle.py index 2f4b2b7b02..7dae0f2d85 100644 --- a/plugins/cache/pickle.py +++ b/plugins/cache/pickle.py @@ -56,6 +56,7 @@ class CacheModule(BaseFileCacheModule): """ A caching module backed by pickle files. """ + _persistent = False # prevent unnecessary JSON serialization and key munging def _load(self, filepath): # Pickle is a binary format