Fix localStorage caching adapter