• abrazell

    (@abrazell)


    I’d like to post this where I know there will be the most advanced users reading but this will have to suffice. ?? No offense to anyone, I just know this is rather advanced.

    Without using a cron job (remember, this would have to work on a Win32 box as well), would there be anyway, using XMLRPC or other trick, to determine if an RSS feed has been updated.

    The theory is is to write a plugin that will essentially merge entries from a friend’s RSS feed into my own blog. That’s the easy part. Figuring out when to query an updated feed is another.

Viewing 7 replies - 1 through 7 (of 7 total)
  • rustindy

    (@rustindy)

    innereyes.com right now just queries all the blogs’ RSS feeds each time the page loads. of course, that’s the dumb way to do it, and i’ll be fixing it later tonite.

    the easiest way to handle it is to control the schedule on your own end – just store an entry in a database or text file with the last time the feeds were queried. then decide whether it should have a 60 minute refresh, or daily, or 5 minutes, or whatever. compare the current time against the stored time, and if more than X minutes have passed, re-query the feeds.

    alternatively, figure out how “pingbacks” work and use that ?? it’s the hard way, but it’s probably the best way

    Thread Starter abrazell

    (@abrazell)

    yeah. The hard way. But that’s how I wanted to do it….

    rustindy

    (@rustindy)

    yup, that’s the code i’m working on right now too – but in ASP, not PHP.

    davidchait

    (@davidchait)

    I’m working on updated CG-Feedread to support publishing as posts into you blog (a ‘reblogger’). Rather than needing a cron job, it has its own timing system for when the cache is outdated.

    I agree that something like pingbacks is the ‘push’ method of notifying of updates. But if you check once every few hours, that’s pretty darn good unless someone’s posting multiple times per day… Depends on how ‘live’ you want it.

    The advantage of using a cron job is that you can run it completely offline from the site processing…

    At the same time, I don’t recommend pings more often than an hour, as it is hitting the site, and if you started doing checks measured in minutes it might start adding up. Well, if many people were pinging the same feed at least… ??

    -d

    Thread Starter abrazell

    (@abrazell)

    It’s not that I am opposed to croin on its merits. It’s that it won’t work on Windows and this plugin will be released, not just internal…

    rustindy

    (@rustindy)

    almost any plugin can be converted to Windows – i got Spaminator and Keitai-mail both working on a windows server without much trouble. instead of cron you use the “schedule tasks” thing ??

    as far as pingbacks go, it doesn’t mean that (for example) my site pings each of my hosted blogs every x minutes (be easier just to grab the RSS feeds then). it means that the blogs themselves ping my script when they’re updated. just like blo.gs or the pingomatic server.

    Thread Starter abrazell

    (@abrazell)

    as far as pingbacks go, it doesn’t mean that (for example) my site pings each of my hosted blogs every x minutes (be easier just to grab the RSS feeds then). it means that the blogs themselves ping my script when they’re updated. just like blo.gs or the pingomatic server.

    That’s what I’m getting at. I want to be pinged by the blog when they post and then it becomes part of my blog. Now I assume the sending blog can put my xmlrpc.php in their sites to ping…. BUT…once it hits my blog, where to find that data to put in the database…?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Picking Dev Brains’ is closed to new replies.