Skip to content

Commit

Permalink
force reload widget js cache
Browse files Browse the repository at this point in the history
  • Loading branch information
TrystanLea committed Aug 13, 2022
1 parent bd7657b commit a6fa837
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Views/loadwidgets.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function load_widget($folder,$widgetname)
}
if (is_file($folder."/".$widgetname."_render.js"))
{
echo "<script type='text/javascript' src='".$path.$folder."/".$widgetname."_render.js?v=3'></script>";
echo "<script type='text/javascript' src='".$path.$folder."/".$widgetname."_render.js?v=4'></script>";
$gotWidget = true;
}
return $gotWidget;
Expand Down
2 changes: 1 addition & 1 deletion dashboard_controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function dashboard_controller()
$dashboard = new Dashboard($mysqli);
// id, userid, content, height, name, alias, description, main, public, published, showdescription, fullscreen

$js_css_version = 11;
$js_css_version = 12;

$result = false; $submenu = '';

Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name" : "Dashboard",
"version" : "2.3.1",
"version" : "2.3.2",
"location" : "/var/www/emoncms/Modules",
"branches_available": ["stable","master"]
}
1 change: 1 addition & 0 deletions widget/kwhperiod/kwhperiod_render.js
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,7 @@ function kwhperiod_draw () {
if (periodsAgo > 0 || useLastYear) {
// pastPeriodEndValue
var result = feed.getvalue(feedid, pastperiodEndTime.getTime()*0.001)

//console.log(result, 'past period end')
var pastPeriodEndValue = result

Expand Down

0 comments on commit a6fa837

Please sign in to comment.