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 preference as to how long the default cache duration is? By default I am thinking of setting it to be a month. Our WSDLs don't change that frequently, so I am thinking that a month (or even longer) is reasonable. Please let me know if you have thoughts.
By the way, you can delete the cache directory if you want it to re-build.
Thoughts?
TIA,
-Matt
- Ionut_Turturic1Historic F5 AccountWSDL caching would be pretty nice. One month sounds ok, but would it be smart enough to decide whether the remote WSDL is newer than the cached one, and download it again ?
- L4L7_53191
Nimbostratus
I'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:
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