Forum Discussion
L4L7_53191
Nimbostratus
Feb 26, 2010pyControl v2 cache duration: do you have preferences?
All: One of the new features of pyControl 2.0.1 will be an WSDL cache of pickled WSDL objects. These can be re-used and it should speed up load times a bit.
Question: do you have a pre...
L4L7_53191
Nimbostratus
Mar 05, 2010I'll definitely be adding a cache=None option here (currently enabled by default, but I'll now make a kwarg out of it) so that should be fine. Now, regarding automatically detecting a newer WSDL, the answer is no - the cache is read from disk and pyControl wouldn't be able to figure out what is newer and what is not as it's reading from disk and not checking the remote system. There are two ways to potentially address this:
1) I already plan to add a cache flush function, probably in the utils module. This should be handy for cache rebuilds, etc.
2) You can subclass the suds cache class and easily create a custom cache with specific timeout values (e.g. 0=indefinite, hours, weeks, months) values/attributes.
Once I add the cache='blah' kwarg, 2 will be easily satisfied - I'll do some testing and give some examples in the forums, docs, and codeshare.
Does this sound reasonable?
-Matt
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
