terraref / traitvis-webapp

Shiny application for visualizing trait data
https://traitvis.workbench.terraref.org/
BSD 3-Clause "New" or "Revised" License
2 stars 4 forks source link

Issue 21/cache refresh #22

Closed tcnichol closed 5 years ago

tcnichol commented 5 years ago

refresh cache script

tcnichol commented 5 years ago

This refresh script should work by itself now. It is ready for testing/review.

max-zilla commented 5 years ago

I'm pushing a few updates. Going forward, please remove test files/print statements before creating a PR because we don't need to keep those in production. removing some now.

max-zilla commented 5 years ago

We need to make sure that when cache-server reloads the cache file, that the app.R script correctly uses the new file instead of using the already-loaded data.

tcnichol commented 5 years ago

@robkooper

i refactored the loading of the cache data and added a check for whether the cache file has been modified. not sure if it's correct, so please check and comment.