emoncms / device

Emoncms device module
GNU Affero General Public License v3.0
2 stars 17 forks source link

Template Caching #20

Closed TrystanLea closed 4 years ago

TrystanLea commented 6 years ago

Device template cache needs reloading somehow so that users can see new devices, calling:

https://emoncms.org/device/template/reload.json

works, perhaps this could be called once when the device interface is loaded?

What do you think @adminde

I've just updated the OpenEVSE device, but no one will be able to see it, in its new location on emoncms.org without calling https://emoncms.org/device/template/reload.json

adminde commented 6 years ago

Sorry for my late response

I actually removed that while updating the redis caching a while ago. The template caching is user-independent. Hence on a asynchronous environment with several users like emoncms.org it would be completely unaccepptable to reload the template cache every time anyone loads the device view.

I just realized I never finished that thought 😉 ... the best solution could potentially be to add a button in admin view for the device-support branch?