ethersheet-collective / EtherSheet

Online spreadsheet collaboration in real time using node.js. Similar to etherpad-lite but its a spreadsheet!
https://ethersheet.org
BSD 2-Clause "Simplified" License
198 stars 24 forks source link

How to force a reload of the data from the database? #31

Open vlad88sv opened 9 years ago

vlad88sv commented 9 years ago

Hi, I would like to know how we can reload data directly from the database?

We have a "revert" function that the user clicks and then we replace all the data on the database with data we previously backed up into another table (midnight CRON that mirrors "store" table).

Problem is that once we replace the data, no matter how much we refresh the web browser the data is still retrieved from memory until we restart node.js.

Thank you!.

cooperq commented 9 years ago

Interesing question! I'm not sure off of the top of my head what the solution to this will be, but I suspect it might reside in the database abstraction layer which uses the ueberDB package. UeberDB might be caching results, I think we should look first at that layer.

radicaldesigns commented 9 years ago

Any chance I can be removed from this thread? I am not really involved in this project at all, and my inbox is crazy enough as it is. Thanks!

Best, Kristin

Kristin snelling [executive director + creative director + information scientist] www.radicaldesigns.org radicalDESIGNS cooperative p: 415.738.0456 f: 415.424.4556

On Sep 21, 2015, at 5:45 PM, Cooper Quintin notifications@github.com wrote:

Interesing question! I'm not sure off of the top of my head what the solution to this will be, but I suspect it might reside in the database abstraction layer which uses the ueberDB package. UeberDB might be caching results, I think we should look first at that layer.

— Reply to this email directly or view it on GitHub https://github.com/ethersheet-collective/EtherSheet/issues/31#issuecomment-142148095.