[Issue 10329] Additional issues with pcache, and a test