Chris, I recently did a similar project (albeit not with Wordpress) where I imported a XML feed from another website into a ColdFusion powered site. What I found out, at least for the project I was doing, was that writing the file to my machine and using that for my output was significantly more manageable than trying to manage cache. This was especially true when having to debug something that came from the imported data. While I'm sure that Wordpress's RSS feed is stable, the main thing is that you're getting content from a source that you do not have direct control over and this can create some issues outside of what you're already experiencing.
I think your idea is solid, I'd just simply think about writing the import to a file for use by your application. I do have one other small recommendation. If you are planning to update every two minutes, I'd recommend setting the timeout on your <cffeed> to something below 120 (ideally below 100) as it seems to me that you could be creating collision or recursion with the current value of 180. Just my two cents. Thank you, Troy Jones Technical Manager Third Wave Digital 1841 Hardeman Ave. Macon, GA 31201 t...@thirdwavedigital.com<mailto:t...@thirdwavedigital.com> www.thirdwavedigital.com<http://www.thirdwavedigital.com> From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Chris Sent: Monday, September 29, 2014 1:35 AM To: discussion@acfug.org Subject: [ACFUG Discuss] Using caching and threading to load a page quickly Hi All, I have a main index page which is in ColdFusion which gets a RSS feed from another website(Newswebsite which is a WordPress 3.9.2 website running on shared hosting). The Newswebsite is on shared hosting so takes about 7 seconds to load(a little slow, I know, but the decision to go with a shared hosting was done to save on costs by the purchasing people). Now, people don't want the main index page to take 7 seconds to load. I estimate using caching of the RSS feed so that updates are retrieved from the feed only every 2 minutes and having a thread so that the main index page loads(in 2 seconds or less) without waiting for the RSS feed can alleviate the issue. The thread which fetches the data from RSS feed can display the feeds on the main index page after the data is retrieved. 1. If the idea is on the right track, would something like the below work? ----------------------------------------------------------------------------------------------------------------------------- The full implementation is at http://collabedit.com/dgraj/history <!--- Caching the RSS feed from newssite so that it is checked every 2 minutes only---> <!--- Start a thread and wait for it to read the RSS feed from newssite ---> <!--- Wait for the thread for 7 seconds---> <!--- Check if there are any entries from RSS feed of newswebsite and display the feed information on main index page if it was obtained in 7 seconds ---> ---------------------------------------------------------------------------------------------------------------------------- 2. Are there other better ways to tackle the issue? I want the other parts of the main index page which is in ColdFusion to load quickly and not get delayed because getting data from the RSS feed of news website takes 7 seconds. Any suggestions would be appreciated. Thanks P.S. I used ColdFusion code and Yahoo e-mail did not allow me to send it. I heard Yahoo Mail flags messages containing code as spam so does not allow such messages. So, just had to explain it in text and provide a link to Collabedit.