Need to manually delete the Cache folder for the Riset block to keep up

Post Reply
RonnyT
Observer
Observer
Posts: 18
Joined: Wed Jun 21, 2023 7:13 pm
Station model: Davis Vantage Pro 2
Software: Weather Display

Need to manually delete the Cache folder for the Riset block to keep up

Post by RonnyT » Tue Jun 27, 2023 8:37 pm

Hi!
My riset block works fine the first time you visit the site but the next and next etc the sun/moon just wont move until I manually log into the server and delete the cache folder...
I am on ver. 7.7 and all look fine except the cache problem.

Are perhaps people running a cron job that delete all files in the cache folder every few minutes??

My site, riset top right:
https://www.lynradar.no/template/indexDesktop.php

FSC830
Forecaster
Forecaster
Posts: 195
Joined: Thu Aug 02, 2018 11:40 am
Station model: Davis Vantage Pro2
Software: Meteobridge

Re: Need to manually delete the Cache folder for the Riset block to keep up

Post by FSC830 » Wed Jun 28, 2023 9:26 am

Very strange, looked up into the block and did not found any relation with a cache directory!?
Updated (replaced) the riset block at my site from 7.0 to 7.7 and all seems working.

I do not have any job running for cleaning the cache folder.

But noticed, that somewhere the internet line from Germany to Norway is very, very slow. Loading your page lasts about 60s+ :o .
Sometime I get a "connection timeout" :shock: . No idea, where the bits are dropped.

Regards
Image

RonnyT
Observer
Observer
Posts: 18
Joined: Wed Jun 21, 2023 7:13 pm
Station model: Davis Vantage Pro 2
Software: Weather Display

Re: Need to manually delete the Cache folder for the Riset block to keep up

Post by RonnyT » Wed Jun 28, 2023 9:42 am

very strange about the timing, but sometime after I posted I imported 24 database files from weather display log files and reformatted the database, perhaps it was at that time you tried.
I am 100% sure that clearing the cache folder reloads the block at the correct time, otherwise it stays stuck for hours at least...
But it might not be the block itself but something with the main template... I had a very hard time to even get it to display anything initially and the menu forecast page I just had to remove as I couldn't get past the error 500...

Hoping things get better now that a major update is imminent :)
Last edited by RonnyT on Wed Jun 28, 2023 10:41 am, edited 1 time in total.

RonnyT
Observer
Observer
Posts: 18
Joined: Wed Jun 21, 2023 7:13 pm
Station model: Davis Vantage Pro 2
Software: Weather Display

Re: Need to manually delete the Cache folder for the Riset block to keep up

Post by RonnyT » Wed Jun 28, 2023 9:43 am

just opened my page for the first time today and it shows yesterday afternoon...
Attachments
2023-06-28 11_42_43-Bergen Lynradar.png
2023-06-28 11_42_43-Bergen Lynradar.png (16.42 KiB) Viewed 12297 times

FSC830
Forecaster
Forecaster
Posts: 195
Joined: Thu Aug 02, 2018 11:40 am
Station model: Davis Vantage Pro2
Software: Meteobridge

Re: Need to manually delete the Cache folder for the Riset block to keep up

Post by FSC830 » Wed Jun 28, 2023 10:25 am

The site does again died out when reloading a few seconds ago :( .

So not sure, what is bad behaviour of block and what is slow connection.
The block shows me today, but the sun/moon icons remains all day at about 08:19.

Regards
Image

RonnyT
Observer
Observer
Posts: 18
Joined: Wed Jun 21, 2023 7:13 pm
Station model: Davis Vantage Pro 2
Software: Weather Display

Re: Need to manually delete the Cache folder for the Riset block to keep up

Post by RonnyT » Wed Jun 28, 2023 10:33 am

can confirm a ctrl-F5 does not help in the browser, ctrl-F5 after deleting the template\cache folder works.
I see now that also the cloudheight and airquality block have the same problem ...

Now it is correct adter deleting cache:
Attachments
2023-06-28 12_27_46-Bergen Lynradar.png
2023-06-28 12_27_46-Bergen Lynradar.png (30.7 KiB) Viewed 12294 times

FSC830
Forecaster
Forecaster
Posts: 195
Joined: Thu Aug 02, 2018 11:40 am
Station model: Davis Vantage Pro2
Software: Meteobridge

Re: Need to manually delete the Cache folder for the Riset block to keep up

Post by FSC830 » Wed Jun 28, 2023 10:51 am

No idea about this weird issue.
At least once the riset shows the actual time, even if site is not fully loaded.
Screenshots attached from several trials to (re)load the page.
no_05.jpg
no_05.jpg (247.32 KiB) Viewed 12292 times
no_06.jpg
no_06.jpg (234.06 KiB) Viewed 12292 times
no_07.jpg
no_07.jpg (237.95 KiB) Viewed 12292 times
Regards
Image

RonnyT
Observer
Observer
Posts: 18
Joined: Wed Jun 21, 2023 7:13 pm
Station model: Davis Vantage Pro 2
Software: Weather Display

Re: Need to manually delete the Cache folder for the Riset block to keep up

Post by RonnyT » Wed Jun 28, 2023 11:58 am

thank you that was good information, looks like I need to open a support case with cloudflare ... I will pause the entire cloudflare for a few hours and see if that helps. It works really well from home at work and phone here in Norway...

RonnyT
Observer
Observer
Posts: 18
Joined: Wed Jun 21, 2023 7:13 pm
Station model: Davis Vantage Pro 2
Software: Weather Display

Re: Need to manually delete the Cache folder for the Riset block to keep up

Post by RonnyT » Wed Jun 28, 2023 12:35 pm

I have bypassed all caching for the site at cloudflare now to see if that helps ... if no differece I will disable cloudflare all together and see...

FSC830
Forecaster
Forecaster
Posts: 195
Joined: Thu Aug 02, 2018 11:40 am
Station model: Davis Vantage Pro2
Software: Meteobridge

Re: Need to manually delete the Cache folder for the Riset block to keep up

Post by FSC830 » Wed Jun 28, 2023 12:46 pm

Seems, that this helped a lot.
Loading of page is now done in a few seconds. :)
In my Firefox the riset/cloud block still remain at the values from 08:10 this morning (will empty cache later).
Loaded the page with Edge (I usually do not use Edge for internet) and all blocks show the current figures.

So may be an issue with the Cloudflare...?

Regards
Image

RonnyT
Observer
Observer
Posts: 18
Joined: Wed Jun 21, 2023 7:13 pm
Station model: Davis Vantage Pro 2
Software: Weather Display

Re: Need to manually delete the Cache folder for the Riset block to keep up

Post by RonnyT » Wed Jun 28, 2023 5:04 pm

I agree ... cloudflare is my problem.
I will keep cloudflare off and test again after the upgrade soon ... I need cloudflare because when lightning storms occur the site often goes down due to enormous amount of visitors, more than the isp can handle...

RonnyT
Observer
Observer
Posts: 18
Joined: Wed Jun 21, 2023 7:13 pm
Station model: Davis Vantage Pro 2
Software: Weather Display

Re: Need to manually delete the Cache folder for the Riset block to keep up

Post by RonnyT » Wed Jun 28, 2023 5:11 pm

Searching the forums for cloudflare I see I was far from the first one who had their site broken by cloudflare and slow caching... lesson learned :)

FSC830
Forecaster
Forecaster
Posts: 195
Joined: Thu Aug 02, 2018 11:40 am
Station model: Davis Vantage Pro2
Software: Meteobridge

Re: Need to manually delete the Cache folder for the Riset block to keep up

Post by FSC830 » Thu Jun 29, 2023 6:36 am

Seems, that Cloudflare and Firefox are not best friends :D .
In Firefox the riset/cloud blocks remain unchanged since yesterday, riset still show June, 28th, whereas in Edge the current day and sun/moon position is displayed.
At my site all is correct with the riset block (with both browsers).

Regards

Edit: Ctrl+F5 brings current values in Firefox too.
Edit 2: Its must be at your site anyhow. The riset block works without Ctrl+F5 at my site when refreshing/reloading the page.
Image

Post Reply