updated references to config settings
added apc caching functions