WhosOnCFC 2.2.5

I have just uploaded WhosOnCFC 2.2.5 to RIAForge.  I am not on my main computer so I cannot update the source on GitHub.

It has been quite some time since my last update the the core component that handles user tracking; most of the recent changes have involved updated viewers and the like.  In this update I have basically rewritten the WhosOnPageTracker() which is the main method that ties everything together.  Yesterday, Kevin M., a user pinged me to let me know he was interested in using WhosOnCFC to track users on his web site, but when he installed it he noticed a substantial decrease in speed.   He asked if I could make any suggestions to make things run a bit faster.

Looking through the code I saw quite a few spots where things could definitely be optimized.  Here is a quick run-down of what was done:

  • ignoreDomains, ignoreIPs, and botList check is now run on the first hit on the site.  Version prior to 2.2.5 checked these on every request which slowed down execution time, especially if you have a long botList.  WhosOnCFC still checks for ignorePages on every request, but generally this list is very small.
  • When looping over lists I set a variable to the list length instead of evaluating it in the for loop.  The speed increase is probably marginal but every little bit counts.
  • Reorganized the function to streamline execution.
  • Added execution time (execTime) to the user data so you can see how long WhosOnPageTracker() took for each user.
  • Added the WhosOn Dump page back in.
  • Added a link to jView (jQuery viewer) on the main screen.  Looks like I forgot that in the last release.

Check it out and please let me know if you encounter any errors.


Updated WhosOnCFC 2.2.4 on RIAForge

I just uploaded a new zip package to RIAForge that has an updated version of WhosOnCFC 2.2.4 from the version uploaded yesterday.  I had an issue in Application.cfc that Todd Rafferty helped me run down and that has been corrected.  It also includes a newly updated version of the jQuery session viewer.  I tried to be thorough when I wrote the jQuery viewer so you could watch your sessions, but at the same time added in some nice jQuery UI elements as well.  Again, you can find the live demo here: http://www.kisdigital.com/tests/jView.

I have also changed the SVN hosting for WhosOnCFC.  I have been using git almost exclusively lately, so I have switched over to github for handling version control.  I usually push to github at the end of the day so if you are interested in having the most up-to-date version you can generally find it here: http://github.com/robertz/WhosOnCFC.

New viewer for WhosOnCFC

Last night I quickly threw together a new viewer for WhosOnCFC using jQuery.  The old enhanced viewer is nice, but I have been using open-sourced ColdFusion engines and most do not play nicely with the CFLayout tag.  Also it was a good diversion since I have been working on the same project for weeks now.

It is in the early stages and still needs a little work, but here is what I currently have.  Suggestions are welcome!