
Having decided to promote my blog as much as possible, I decided one of the best ways was to ping as many blog servers as possible.
Blogcfc has (in its settings option in the admin) an option to list ping urls. When you submit a new entry to your blog, these servers are contacted automatically telling them you have a new entry.
So, on searching google for a good list of addresses to ping I came across: 56 RPC and RPC2 Services to Ping . I have included the list in the download link incase it disappears.
Problems can arise in blogcfc with so many urls being submitted. If you're running blogcfc under coldfusion 8 you should be okay, as Ray coded the ping function to use threads. However if your not on Coldfusion 8 then you'll need to add a timeout setting in "ping7.cfc" (which can be found in "/org/camden/blog". This is because the cfloop may timeout.
Add the following line just above the cfloop:
Don't forget to re-init you blog before you post, so that the new line is initalised.
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 |
JAYESH TALSANIYA said: in mssql u cannot use parentheses in select statement. use as below: INSERT INTO [TABLE] (column1,... [More]
Multiple SQL inserts: Oracle, Mysql, MssqlJD said: I found with MSSQL, I couldn't use parentheses in my select statements for insert. So, from your ex... [More]
BlogCFC ping list and timeoutsWill Wilson said: Nice :) that will come in handy, thanks! [More]
Is this a Coldfusion 8 BUGBarb said: I'm having the same problem . . . when I start CF8, it seems to hang during or just after the user M... [More]
Is this a Coldfusion 8 BUGJoão Fernandes said: Phil, when you install CF8 they give you an option to install LCDS within CF. The messageBrokerServl... [More]
If you're adventurous you could try setting a timeout of 1 on the cfhttp call that does the ping. In theory the request should complete and since you do not need to do anything with the response the loop will just continue on to the next ping (kind of like a poor mans cfthread if you will).
Thanks Todd - Its always worth setting a good timeout value for cfhttp (that overrides the default one set in cf admin). In conjunction with the cfsetting (for the page timeout), this should help with a huge list of ping urls.
Nice :) that will come in handy, thanks!