Fix public profile caching plus debug logging