Yesterday and today I noticed a problem with my feed creators. It seemed I was getting multiple feeds for each day. I knew partially why this was happening, and that is because my feeds are created by a php page so I created a script that would hit the web page and cause it to create the new feed with the new file. I set this program to run 3 times in the morning so that if one didn’t work, at least one of the others would. So when it happened two days in a row I knew I had a problem. I took a peek at the database, and found that this problem started happening in August, a new month… So, I looked at the code and found it was actually comparing dates that weren’t exactly the same. (The date comparison checks to be sure the feed is only created once per day.) Well the dates looked like this – 2007-08-2 and 2007-08-02 so we were getting a new feed each time the page was hit. To make it work I had to test it a bit and so it created 3 more for today, so we had come extras – do two a day for a couple of days, and see how that works 🙂 then when you catch up you can be back to just one. Sorry for any inconvenience this may have caused… I should go do some reading now to catch up…
Leave a Reply