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.
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.