Page 3 of 3

Re: Not updating every 60s

Posted: Tue 23 Mar 2021 4:42 pm
by PaulMy
Hi,
@freddie that link for me shows an auto update every 5 minutes, nothing in between - over the past 2 hours.

Mine are both definitely a problem with either a server cache or my PC browser cache.

I started checking shortly after 10:15 this morning
komokaweather.com/cumulusmx started with a time of 10:15 and it is still the same for me at 12:16
komokaweather.com/cumulusmxwll started with time of 10:00 and it is still the same for me at 12:16

I have tried clear browser cache, F5, ctrl-F5 many times for both with no change in time stamp
I have then tried by extending the url with /index.html?xxxxx to make it a unique url, and this has at times changed the date stamp but as soon as go back to /index.htm back to the original times.

I have made sure that the latest setpagedata.js is FTP to my sites.
However a F12 did not show this latest version. The following is the file info:
My setpagedta.js from download zip

Code: Select all

 * 	setpagedata.js		v:0.1.0		d:Mar 2021		a:Neil  Thomas
 *  Last modified: 2021/03/23 11:19:16

komokaweather/cumulusmx browser F12

Code: Select all

Data success   setpagedata.js:144
Then right-click on setpagedata.js to open in new window

Code: Select all

/*	----------------------------------------------------------
 * 	setpagedata.js		v:0.1.0		d:Mar 2021		a:Neil  Thomas
 *  Last modified: 2021/03/19 09:21:06
 * 	Basic scripts for all new at-xxxx.html template pages.
 *  Incorporating changes suggested by beteljuice
 * 	Requires jQuery
 * 	----------------------------------------------------------*/
komokaweather.com/cumulusmxwll browser F12

Code: Select all

Data success   setpagedata.js:144
Then right-click on setpagedata.js to open in new window

Code: Select all

/*	----------------------------------------------------------
 * 	setpagedata.js		v:0.1.0		d:Mar 2021		a:Neil  Thomas
 *  Last modified: 2021/03/22 14:06:42
 * 	Basic scripts for all new at-xxxx.html template pages.
 *  Incorporating changes suggested by beteljuice
 * 	Requires jQuery
 * 	----------------------------------------------------------*/
So to me this shows a server or browser issue, and I can't enjoy what everyone else can :(
I think the many difficulties I've had in doing updates is caused by this same issue :groan:

Trying to enjoy,
Paul

Re: Not updating every 60s

Posted: Tue 23 Mar 2021 4:46 pm
by freddie
PaulMy wrote: Tue 23 Mar 2021 4:42 pm @freddie that link for me shows an auto update every 5 minutes, nothing in between - over the past 2 hours
That's how it is set up. The page updates the displayed values every minute - you can see this by using F12/devtools - but my data file is updated every 5 minutes, which is correct for my setup. I was just showing that the 60-second updates are actually working.

Re: Not updating every 60s

Posted: Tue 23 Mar 2021 5:05 pm
by mcrossley
Hi Paul, I see your site komokaweather.com/cumulusmxwll is now using the latest script and is pulling the JSON every minute, your other site is still showing the old script. It looks like your host is caching files?

Re: Not updating every 60s

Posted: Tue 23 Mar 2021 5:16 pm
by mcrossley
It looks like your host is using a cloud based firewall/caching service called Sucuri/Cloudproxy. That is probably where the issues are occurring.

Re: Not updating every 60s

Posted: Tue 23 Mar 2021 5:18 pm
by PaulMy
@freddie, thanks, that helps to clarify.

@Mark, after seeing the power-balls on freddie's site I started to look more closely and I got a number (44) on one site :o
But nothing on the other :cry:

I am sure it is my hosting and will need to have a more productive discussion with them.

Enjoy,
Paul

Re: Not updating every 60s

Posted: Tue 23 Mar 2021 5:22 pm
by mcrossley
Looking more closely, the site komokaweather.com/cumulusmx is also getting an older version of the websitedata.json file than the other site!

Re: Not updating every 60s

Posted: Tue 23 Mar 2021 5:48 pm
by PaulMy
Hi Mark,
I have just download the file from my komokaweather.com/cumulusmx server and opened in Notepad++ and this is the heading:

Code: Select all

/*	----------------------------------------------------------
 * 	setpagedata.js		v:0.1.0		d:Mar 2021		a:Neil  Thomas
 *  Last modified: 2021/03/23 11:19:16
 * 	Basic scripts for all new at-xxxx.html template pages.
 *  Incorporating changes suggested by beteljuice
 * 	Requires jQuery
 * 	----------------------------------------------------------*/
which I think is the latest download.

This is downloaded from /cumulusmxwll:

Code: Select all

/*	----------------------------------------------------------
 * 	setpagedata.js		v:0.1.0		d:Mar 2021		a:Neil  Thomas
 *  Last modified: 2021/03/23 11:19:16
 * 	Basic scripts for all new at-xxxx.html template pages.
 *  Incorporating changes suggested by beteljuice
 * 	Requires jQuery
 * 	----------------------------------------------------------*/
And this from the latest download on my PC:

Code: Select all

/*	----------------------------------------------------------
 * 	setpagedata.js		v:0.1.0		d:Mar 2021		a:Neil  Thomas
 *  Last modified: 2021/03/23 11:19:16
 * 	Basic scripts for all new at-xxxx.html template pages.
 *  Incorporating changes suggested by beteljuice
 * 	Requires jQuery
 * 	----------------------------------------------------------*/
I think that shows the version FTP to my hosting is ok, and that my hosting has cached the earlier versions, of which there have been at least 3 over the past couple of days. I think the same thing has been done in the past where I have had problems showing updated versions. So frustrting.

Enjoy,
Paul

Re: Not updating every 60s

Posted: Tue 23 Mar 2021 6:05 pm
by Mapantz
Have you got Cloudflare set up on it?

A few years back, I had Cloudflare set up and it was causing caching issues, so I turned it off and it sorted it out.

Re: Not updating every 60s

Posted: Tue 23 Mar 2021 6:08 pm
by PaulMy
Hi Mapantz,
Not that I am aware but will check my cPanel and see if I can find that.

Thanks,
Paul

Re: Not updating every 60s

Posted: Tue 23 Mar 2021 6:25 pm
by richard_newberry
if (pageName == 'index.htm' || pageName == 'today.htm' || pageName == '') { added to the setpagedata.js

Does it work now?

Re: Not updating every 60s

Posted: Tue 23 Mar 2021 6:35 pm
by freddie
richard_newberry wrote: Tue 23 Mar 2021 6:25 pm if (pageName == 'index.htm' || pageName == 'today.htm' || pageName == '') { added to the setpagedata.js

Does it work now?
Yes

Re: Not updating every 60s

Posted: Sat 10 Apr 2021 3:27 pm
by richard_newberry
Since updating to the latest version. Mines stopped updating every 60s any ideas?

Re: Not updating every 60s

Posted: Sat 10 Apr 2021 8:59 pm
by beteljuice
From my point of view no problems with either the json upload or the the ajax json grab ?

Everything current !

Re: Not updating every 60s

Posted: Sat 10 Apr 2021 9:02 pm
by Mapantz
I just checked out your website - it's updating every one minute for me..