CHG - use mysql_fetch_assoc() instead of mysql_fetch_array() since the latter includes extra content that is immediately stripped out. This saves a bit of time on every query. Added some php cacheing for queries that are easily and fruitlessly duped.

git-svn-id: http://svn.montala.net/svn/resourcespace@4963 c08608d7-6e46-0410-86ca-f2a6f1370df5
REV - revert last commit, to add a timer, for comparison between this revision and the next

git-svn-id: http://svn.montala.net/svn/resourcespace@4964 c08608d7-6e46-0410-86ca-f2a6f1370df5
CHG - mysql_fetch_array -> mysql_fetch_assoc(), also some caching additions and a timer function for comparison with the last commit.

git-svn-id: http://svn.montala.net/svn/resourcespace@4965 c08608d7-6e46-0410-86ca-f2a6f1370df5