Plugin Slows Down Page Load of Blog, Please Help
-
I created a plugin that parses an XML file on another site, pulls out a small bit of information and displays it on a blog where the plugin function is called. The plugin works but for some reason slows the page load of the blog tremendously. I’m not a very advanced plugin coder (or PHP coder for that matter) and was wondering if anybody would care to look over my code and help me figure out what the problem is and how I may be able to remedy it.
The plugin parses the baseball standings found at https://www.erikberg.com/mlb/standings.xml and pulls out the magic number for the team of your choice (default is my Mets). If your chosen team is not in first place (and hence has no magic number) the plugin does nothing.
The code may be found at the following URL:
https://www.golddave.com/help/MagicNumber2.txtAny help would be greatly appreaciated.
Thanks in advance,
Dave
- The topic ‘Plugin Slows Down Page Load of Blog, Please Help’ is closed to new replies.