Site Update Dec. 19, 2012
Posted: December 20th, 2012, 12:33 am
Well, I wasn't planning on another update so soon since the last, but I was browsing through the site logs and noticed several error reports that ended up being from a bug I introduced with the Nov. 29 update. Anyway, I tracked that down and have a fix along with some fixes to a few other issues I noticed while going through the logs. There's also a lot of other nice changes too.

- Fixed bug where clicking on the Geocacher link in the FDF Leaderboard summary on the RegionPage didn't work (redirected to an error page stating the resource no longer exists or was removed).
- Added a row to the bottom of the Loneliest table (both home page and RegionPage) to view either a member's top found/owned or not found/owned. This is a member feature, so you have to be logged in to see it.
- Updated the Hides page and the Finds page to show both the current cache points and the next find cache points.
- Afer logging in, you will now be redirected to your Geocacher Page.
- On the Log in page, the Log in button is now the default button instead of the Search button.
- When initiating a search from the Log in page, when not logged in, the error, The current user is not allowed to access the previous page, will no longer occur. Instead you will now be properly redirected to the search page where a message stating no search string was found is output. This situation occurred a lot because the Search button was the default button instead of the Log in button
- After logging out, you will now be redirected to the log in page.
- When canceling out of changing your password, you will now be redirected back to your Profile page instead of the home page.
- The View Statistics For table at the bottom of the home page, has been added to the bottom of the RegionPage and the bottom of the GeocachePage. It has also been reworked in such a way that it is very simple to add it to any other page as desired.
- Added some maintenance routines to run each day after the stats are updated: Remove any Geocachers that no longer have any hides or finds in LonelyCache; Remove site performance statistics that are over 90 days old.
- I noticed the database query for retrieving nearby caches had timed out several times. This results in no results being shown. I personally have never seen this, but from the site logs, I know it has happened. To alleviate this, I upped the query timeout value to 60 seconds from the default 30.
- I created a generic paging mechanism to use for the various pages. Now instead of links to to to the next or previous pages, there are also links to go to the start and end of the list, along with jumping forward or back ten pages. All pages that had paging now use this mechanism. Also, paging was added to the TopCaches page.
- I improved the auto update a user's finds feature by stream lining the database calls that were used to check whether a find was already part of LonelyCache or not. Basically, instead of 25 to 50 DB calls for 25 finds, we now have one or two.