Autogenerate sharedCacheKeyPrefix setting

This is done via a command triggered by composer update or install.

also cleaned up the entry point (e.g. remove used variable)

Bug: 70889