From 38f3cfcfdbf36bca3b048cc87e6d11e0c883673b Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Fri, 16 Aug 2013 10:53:23 -0400 Subject: Rewrote arbitrary data cache system The caching facilities in Bcfg2.Server.Cache provided basically no features. This rewrites that to allow for much more powerful cache expiration, with a particular focus on interoperation between different components and plugins to let caches be expired as necessary. (E.g., the Probes plugin can expire the Metadata cache.) This does not affect any of the file data cached by Bcfg2, only the caches that are populated with arbitrary data (Metadata, Packages, Probes, etc.). --- src/lib/Bcfg2/Server/Plugin/helpers.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib/Bcfg2/Server/Plugin/helpers.py') diff --git a/src/lib/Bcfg2/Server/Plugin/helpers.py b/src/lib/Bcfg2/Server/Plugin/helpers.py index cfdb25cd6..38491b05d 100644 --- a/src/lib/Bcfg2/Server/Plugin/helpers.py +++ b/src/lib/Bcfg2/Server/Plugin/helpers.py @@ -961,6 +961,8 @@ class PrioDir(Plugin, Generator, XMLDirectoryBacked): self.Entries = {} for src in self.entries.values(): for child in src.xdata.iterchildren(): + if child.tag in ['Group', 'Client']: + continue if child.tag not in self.Entries: self.Entries[child.tag] = dict() self.Entries[child.tag][child.get("name")] = self.BindEntry -- cgit v1.2.3-1-g7c22