Updated registering of cache providers. Now it no longer throws an exception when a provider that already is registered is registered again.