Add a refresh cache button Topic is solved

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
User avatar
leecollings
Posts: 167
Joined: Tuesday 30 June 2015 18:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: United Kingdom
Contact:

Add a refresh cache button

Post by leecollings »

Would it be an easy task to add an 'Clear Cache' button to the Setup dropdown menu?
User avatar
gizmocuz
Posts: 2552
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Add a refresh cache button

Post by gizmocuz »

that is a browser issue, you can only perform this in the browser

Why would you need this? If you are developing, then add a startup parameter -nocache
Quality outlives Quantity!
User avatar
leecollings
Posts: 167
Joined: Tuesday 30 June 2015 18:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: United Kingdom
Contact:

Re: Add a refresh cache button

Post by leecollings »

gizmocuz wrote:If you are developing, then add a startup parameter -nocache
How exactly can this be done? What files need to be edited?
RidingTheFlow
Posts: 72
Joined: Friday 11 March 2016 18:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Essex, UK
Contact:

Re: Add a refresh cache button

Post by RidingTheFlow »

I use option on Chrome which temporarily disables cache when development panel (Ctrl-Shift-I) is up. Works pretty well.
User avatar
bizziebis
Posts: 182
Joined: Saturday 19 October 2013 14:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8805
Location: The Netherlands
Contact:

Re: Add a refresh cache button

Post by bizziebis »

Or open a new 'Private browsing' tab. This should be something everyone should try when they think they have troubles with Domoticz web interface. Very easy, very efficient.
User avatar
Marci
Posts: 532
Joined: Friday 22 January 2016 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Wakefield, West Yorkshire UK
Contact:

Add a refresh cache button

Post by Marci »

leecollings wrote:
gizmocuz wrote:If you are developing, then add a startup parameter -nocache
How exactly can this be done? What files need to be edited?
On raspberry...

Code: Select all

sudo service domoticz.sh stop
cd ~/domoticz
./domoticz -nocache
Now use private-browsing in your web browser to keep regular browser cache clear for duration of development.

When done developing... Ctrl-C to stop Domoticz... then

Code: Select all

sudo service domoticz.sh start


...to go back to normal running, and switch back to regular browser window.
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest