CodethinkLabs / software-dependency-visualizer

Prototype software dependency visualizer tool
Apache License 2.0
0 stars 1 forks source link

Jmac/optimisation #41

Closed jmacarthur closed 8 years ago

jmacarthur commented 8 years ago

This is a simple cache of the output of server.py; all packages requested via /graph/present/x will be stored and the same JSON returned on the next query. There's no expiry or cache validation. The cache must be manually cleared if the database is updated. It only works if the cache directory ("package-cache") exists, so deleting that will turn it off.

The JSON data has also been trimmed a bit: 'contents' is now optional (since most nodes are functions, which won't have any) and 'caption' is removed since it can be derived from the uri.