Introduction
When using the LiteSpeed Cache plugin, profile images for logged-in users are cached by default—so newly uploaded avatars may not appear immediately. This guide shows you two ways to ensure updated profile pictures display correctly.
Disable Caching for Logged-In Users
- In your WordPress admin, go to LiteSpeed Cache > Settings > Cache.
- Toggle Cache Logged-In Users to Off.
- Click Save Changes.
Purge Cache on Avatar Upload
- In WordPress admin, navigate to LiteSpeed Cache > Cache > Purge > Purge All Hooks.
- Add the hook xprofile_avatar_uploaded to the list.
- Click Save Changes.
Troubleshooting and FAQs
Q: I still see the old profile picture—what next?
A: Go to LiteSpeed Cache > Toolbox > Purge > Purge All, then clear your browser cache and reload the page.
Q: Where can I find the Purge All Hooks setting?
A: It’s under LiteSpeed Cache > Cache > Purge—ensure you have LiteSpeed Cache v3.0+ installed.
Q: Will disabling cached logged-in users affect performance?
A: Yes, it may increase server load. Using the purge hook method is more targeted and preserves caching benefits.
Q: Where can I learn more about LiteSpeed Cache hooks?
A: See the official documentation: https://docs.litespeedtech.com/lscache/lscwp/cache/#purge-all-hooks