is_user_logged_in weird issue
-
Hi,
I have found this weird issue. Im using this function to display a welcome message for logged in users. Everything works, logout, login, etc.
After login on My Account page the Top Bar is succesfully updated and the welcome message appears, but if I go to the front page the Welcome message is not appearing. It is displayed on every other page, shop, posts, categories, etc. Just not on the front page.
If I refresh the front page with CTRL+R the welcome message appears correctly.
I have disabled caching for front page too.
Also tried this code, to flush it on login:
add_action('wp_login', 'mj_flush_w3tc_cache'); function mj_flush_w3tc_cache() { if (function_exists('w3tc_pgcache_flush_post')) { w3tc_pgcache_flush_post(233); } }
Thanks for the help ??
- The topic ‘is_user_logged_in weird issue’ is closed to new replies.