Feed Manager cache problem

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
9/24/2013 3:16:54 AM
Gravatar
Total Posts 537
feet planted firmly on the ground

Feed Manager cache problem

Hi Joe

While playing around with the "recent birthdays" rss feed I've noticed some odd behaviour with the Feed Manager and its cache, which could be a bug ...

My feed is here: http://www.breconfans.org.uk/rsscustomhandler.ashx (currently showing 16 items)

The feed is displayed on this page http://www.breconfans.org.uk/birthdays (currently showing 7 items). Why the difference?

If I clear the cache for the feed, I see the seven records disappear from mp_RssFeedEntries.  But when I reload the page, the same seven entries appear in the table again, even though they are nothing like the actual data from the feed right now.  I have the Feed Manager configured to fetch up to 100 entries, Entry Cache Time In Minutes=20, Show Posts up to this many days old = 1.

It looks like the response from the feed has been cached somewhere, and the end result is incorrect display on the page. Any idea how I can make it show the right stuff?

 

9/24/2013 10:53:54 AM
Gravatar
Total Posts 29

Re: Feed Manager cache problem

I was curious, because I'm working with the same feature. So I looked at your pages. They match, except for the order the items are listed. Seven on both pages.

9/24/2013 12:43:20 PM
Gravatar
Total Posts 18439

Re: Feed Manager cache problem

As D'Hag stated I see 7 items in the raw feed and 7 in the feed manager. Maybe you previously saw a copy of the feed cached by your browser. The sort is seemingly not the same but could be fixed by making the pubdates different in the feed items since that is what it wants to sort by and they are all identical.

I'm not seeing a bug here.

Best,

Joe

9/24/2013 2:27:49 PM
Gravatar
Total Posts 537
feet planted firmly on the ground

Re: Feed Manager cache problem

I tweaked the code to output the actual DoB for each entry to help understand what is happening, and ruled out caching issues. Also resolved the sorting issue so they now appear in the order of birthdays...

and discovered that...  it was a date culture issue - reversal of day/month when the Feed Manager accesses the feed (or apparently when you access it from a US browser). So the Feed Manager was retrieving a completely different set of people from what I was seeing in the browser from the feed. The ones we/you saw on the page all have DoB like "09/03/1984" which is not within the last 30 days in the UK, but is for USA.

Of course this means the following line in my RSS handler was using the client culture, and this must be USA when mojoPortal calls the feed, but UK from my browser:    DateTime.TryParse(dr("DoB").ToString(), DoB)

Because all my users on this site are UK, I've now changed this to

Dim ukCulture As CultureInfo = New CultureInfo("en-GB")

DateTime.TryParse(dr("DoB").ToString(), ukCulture.DateTimeFormat, DateTimeStyles.AssumeLocal, DoB)

Ahhh the page is now displaying the correct data.

This does make me wonder whether there could be a date field in the Users table for DoB, rather than using a ntext custom property?

9/25/2013 12:25:32 PM
Gravatar
Total Posts 18439

Re: Feed Manager cache problem

I've logged the request for a DOB filed in our project tracker, if/when we need to modify that table for some reason will add it then at the same time, probably not soon.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.