Share: fix cache put function