https://github.com/georules/tributary/tree/gistcache
This is just some mockup code to iterate. There are still some console.log's scattered around and probably a few more bugs I haven't fixed.
It modifies ui.js to use the sandbox index.js getgist endpoint first, which then attempts to load data from a cache of the gist stored in mongo. If it does not have the gist, it will store it for use in the future.
after_save in server.js is modified to invalidate the cache
There is no cache invalidation for saving a gist outside of tributary (if I modify the gist on github for example) -- thoughts about this?