Portal sometimes shows day old cached data

Related to the Portal
Post Reply
Sebyte

Portal sometimes shows day old cached data

Post by Sebyte »

I have noticed recently that the Portal sometimes shows day old data.

When I access the portal I get data from exactly 24 hrs previous, next time I might get the current data, or may not!

I have flushed my cache every time so I am fairly certain that the data is coming from the website cache and not local.

Just to make sure it was not local I tested access with IE9, Chrome, Mozilla Firefox, and Safari. Before opening each browser I cleared it's cache.

Any ideas :)
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Portal sometimes shows day old cached data

Post by rimai »

I have changed the page that the controller sends data to on the newest libraries.
Can you load your code with the 1.0.2 libraries to see if it helps?
Roberto.
Sebyte

Re: Portal sometimes shows day old cached data

Post by Sebyte »

I updated on the 12th to 1.0.2, and it seems that since then I have noticed the problem. However, I just checked the portal again and the date updated to today's date etc.
Sebyte

Re: Portal sometimes shows day old cached data

Post by Sebyte »

Straight away after my last post I went back to the portal page and it was ok, did a refresh and it went back to yesterday. See attached.
Capture 1.PNG
Capture 1.PNG (53.55 KiB) Viewed 6489 times
Capture 2.PNG
Capture 2.PNG (53.13 KiB) Viewed 6489 times
You can see the M/c time and date in bottom RH corner.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Portal sometimes shows day old cached data

Post by rimai »

Did you make any changes yesterday morning?
Looking at the log, the last data I have from your controller is yesterday
Roberto.
Sebyte

Re: Portal sometimes shows day old cached data

Post by Sebyte »

No, the code today is the same as when I updated the libs on the 12th.
Sebyte

Re: Portal sometimes shows day old cached data

Post by Sebyte »

Hi Roberto,

I am still having issues.

When I do a page refresh, or go to the portal from another webpage, the correct date and time shows for a few seconds then the page displays the data from yesterday.

I have rebooted the RA, and the wifi unit is showing green and flashes the orange led's about every 8 to 10 pluses.

I can see today's live data in the iPad app, as well as the client software, so the wifi is sending data. I think I remember that the iPad app gets it's data from the web banner, so it's source is different to the portal.

I have refreshed my IP address, in DYNDNS. Also I have put my current IP address (xxx.xxx.xxx.xxx:2000) direct into the Portal without success. As well as xxxxxx.dyndns.org:2000.

I have also checked my port forwarding, although there is no reason why that should have changed.

I also have this code in my INO file.
    // This should always be the last line
    ReefAngel.Portal( "sebyte" );
    ReefAngel.ShowInterface();
}
I think I have covered everything on my setup as being correct.

Why is the portal not collecting and displaying the data is the question?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Portal sometimes shows day old cached data

Post by rimai »

I think it is the portal key.
I'm looking at the log and now that you posted the code, you are not sending the key that was setup in the portal.
I disabled it in your portal settings.
Let me know if it is still giving you problems.
Roberto.
Sebyte

Re: Portal sometimes shows day old cached data

Post by Sebyte »

I don't remember having set a Key in the past. It seems to be working now, so it looks like that was the issue.

Was there a change in v 1.02 in the area of the key?

Many thanks Roberto.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Portal sometimes shows day old cached data

Post by rimai »

no. nothing.
But looking at the past log, I do see that your controller was sending the key, so you must have changed the code and forgot to add the key.
Roberto.
Sebyte

Re: Portal sometimes shows day old cached data

Post by Sebyte »

Strange, can you see what the key was set to? if so would you PM it to me please.
Post Reply