summaryrefslogtreecommitdiffstats
path: root/doc/development
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander.sulfrian@fu-berlin.de>2016-07-12 02:51:18 +0200
committerAlexander Sulfrian <alexander.sulfrian@fu-berlin.de>2017-03-21 17:26:08 +0100
commit66c272c383c52343b5a201ab59ca2e0e1ee8ee2c (patch)
tree0aa22d27d941d0692e67d829bfbb7e4e6584348c /doc/development
parent3909b0e2897f56b1b50d66c0bde76fcaa111ce25 (diff)
downloadbcfg2-66c272c383c52343b5a201ab59ca2e0e1ee8ee2c.tar.gz
bcfg2-66c272c383c52343b5a201ab59ca2e0e1ee8ee2c.tar.bz2
bcfg2-66c272c383c52343b5a201ab59ca2e0e1ee8ee2c.zip
Server/Plugins/Ldap: Cache the results of the Ldap queries
Using the OnDemandDict removes the results of Ldap queries from the client_metadata cache. We add a new cache per hostname cache for the single ldap queries and add a new configuration option to enable caching until the cache is expired manually via XML-RPC.
Diffstat (limited to 'doc/development')
-rw-r--r--doc/development/caching.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/development/caching.txt b/doc/development/caching.txt
index 83ec0290f..c8b7aba14 100644
--- a/doc/development/caching.txt
+++ b/doc/development/caching.txt
@@ -67,6 +67,9 @@ Currently known caches are:
| pkg_sets | <Collection.cachekey>`, | | for clients |
| | hash of the initial package selection | | |
+-------------+---------------------------------------+-------------------------------------------------+------------------------------------------------------+
+| Ldap, | Hostname, ``<query name>`` | :func:`processed result of the query | Cached results from the Ldap queries |
+| results, | | <Bcfg2.Server.Plugins.LdapQuery.process_result>`| |
++-------------+---------------------------------------+-------------------------------------------------+------------------------------------------------------+
These are enumerated so that they can be expired as needed by other
plugins or other code points.