Title: Doesn&#8217;t work until refresh the page
Last modified: November 5, 2022

---

# Doesn’t work until refresh the page

 *  [Diiamo](https://wordpress.org/support/users/luislu/)
 * (@luislu)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/doesnt-work-until-refresh-the-page/)
 * Hi,
 * I use this plugin to show/hide the login icon/user avatar based on the login 
   status. But somethings it doesn’t work after the user login until refresh the
   page.
 * When I deactivate the Wp rocket cache plugin, t works well. I tried to disable
   the delay JS + remove unused CSS + preload functions of Wp rocket, but your plugin
   still doesn’t work.
 * Please help.
    Thanks in advance.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdoesnt-work-until-refresh-the-page%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [john](https://wordpress.org/support/users/johnweru/)
 * (@johnweru)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/doesnt-work-until-refresh-the-page/#post-16169914)
 * Hi there,
 * Thanks for reaching out to us.
 * In regards to your query here, I’m afraid this is an issue being brought forth
   by a third-party premium plugin. Since support for commercial products is not
   permitted here and that the issue caused by a third-party plugin, I would recommend
   that you consult the Wp rocket plugins’ support team about this issue as they
   are in a better position to point out what could be the cause of this.
 * Sorry that I was not of much help here.
 * Kind Regards,
 * John
 *  Thread Starter [Diiamo](https://wordpress.org/support/users/luislu/)
 * (@luislu)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/doesnt-work-until-refresh-the-page/#post-16171243)
 * Hi，
 * This is totally understood. Does this plugin use PHP or Js/Ajax to show/hide 
   content?
    Many thanks
    -  This reply was modified 3 years, 7 months ago by [Diiamo](https://wordpress.org/support/users/luislu/).
 *  [john](https://wordpress.org/support/users/johnweru/)
 * (@johnweru)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/doesnt-work-until-refresh-the-page/#post-16171313)
 * Hi there,
 * Thanks for keeping in touch with us.
 * In this case, conditions are mainly what are used in determining visibility of
   content. These conditions are set and added using PHP, hence PHP is what is mainly
   used to determine what to show or hide.
 * I hope this information helps.
 * Kind Regards,
 * John
 *  Thread Starter [Diiamo](https://wordpress.org/support/users/luislu/)
 * (@luislu)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/doesnt-work-until-refresh-the-page/#post-16171319)
 * Hi,
 * I check wp rocket’s document, and it says PHP content will be cached, I think
   this is why it doesn’t work. Js or Ajax will work with wp rocket.
    good day,
 *  [john](https://wordpress.org/support/users/johnweru/)
 * (@johnweru)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/doesnt-work-until-refresh-the-page/#post-16173638)
 * Hi there,
 * Thanks for keeping in touch with us.
 * In this case, yes this is likely a caching issue.
 * Should you have any questions about Visibility Logic for Elementor, please feel
   free to reach out once again.
 * Kind Regards,
 * John

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Doesn’t work until refresh the page’ is closed to new replies.

 * ![](https://ps.w.org/visibility-logic-elementor/assets/icon-256x256.png?rev=2534122)
 * [Visibility Logic for Elementor](https://wordpress.org/plugins/visibility-logic-elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/visibility-logic-elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/visibility-logic-elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/visibility-logic-elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/visibility-logic-elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/visibility-logic-elementor/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [john](https://wordpress.org/support/users/johnweru/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/doesnt-work-until-refresh-the-page/#post-16173638)
 * Status: not resolved