Only resolve cache/session to memcache if the driver is memcache

Only resolve cache/session to memcache if the driver is memcache.  Another developer found that it was trying to connect to memcache with the connector even when the drivers were not specified to use memcache.  This will fix that issue.