Title: monoor's Replies | WordPress.org

---

# monoor

  [  ](https://wordpress.org/support/users/monoor/)

 *   [Profile](https://wordpress.org/support/users/monoor/)
 *   [Topics Started](https://wordpress.org/support/users/monoor/topics/)
 *   [Replies Created](https://wordpress.org/support/users/monoor/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/monoor/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/monoor/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/monoor/engagements/)
 *   [Favorites](https://wordpress.org/support/users/monoor/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/users/monoor/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/monoor/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] esi and private cache problem with logout nonce](https://wordpress.org/support/topic/esi-and-private-cache-problem-with-logout-nonce/)
 *  Thread Starter [monoor](https://wordpress.org/support/users/monoor/)
 * (@monoor)
 * [2 years ago](https://wordpress.org/support/topic/esi-and-private-cache-problem-with-logout-nonce/page/2/#post-17889014)
 * ticket number: #836817
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] esi and private cache problem with logout nonce](https://wordpress.org/support/topic/esi-and-private-cache-problem-with-logout-nonce/)
 *  Thread Starter [monoor](https://wordpress.org/support/users/monoor/)
 * (@monoor)
 * [2 years ago](https://wordpress.org/support/topic/esi-and-private-cache-problem-with-logout-nonce/page/2/#post-17887804)
 * on my test? No
 * logout link is like this: `domain.com/account/customer-logout/?_wpnonce=b17a658429`
 * this happens when the nonce is same (not belonging to that user):
 * the user goes to the my-account user panel page (which is not cached) and logs
   out after receiving a confirmation.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] esi and private cache problem with logout nonce](https://wordpress.org/support/topic/esi-and-private-cache-problem-with-logout-nonce/)
 *  Thread Starter [monoor](https://wordpress.org/support/users/monoor/)
 * (@monoor)
 * [2 years ago](https://wordpress.org/support/topic/esi-and-private-cache-problem-with-logout-nonce/page/2/#post-17887763)
 * Oh, I’m sorry, I didn’t know.
 * I tested again, it is not usage-valid. Not even time-valid.
 * For each user, when he logs in, a separate nonce is created.
 * > but do you really have to privatize it ?
   >  So the answer to the question is yes
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] esi and private cache problem with logout nonce](https://wordpress.org/support/topic/esi-and-private-cache-problem-with-logout-nonce/)
 *  Thread Starter [monoor](https://wordpress.org/support/users/monoor/)
 * (@monoor)
 * [2 years ago](https://wordpress.org/support/topic/esi-and-private-cache-problem-with-logout-nonce/#post-17884852)
 * I don’t understand, what should it be the same with?
 * I have a menu that has a logout button, the exit link is created by WooCommerce
   as I showed you.
 * This logout link is cached and since it creates a different nonce for each user,
   it does not work properly!
 * What happens after clicking on the cached logout link? The user goes to the my-
   account user panel page (which is not cached) and logs out after receiving a 
   confirmation.
 * There is a question: How can I configure this link to have a private cache with
   ESI? As I said last time?:
 * > 1- so to cache privately, it should be used like this?:
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] esi and private cache problem with logout nonce](https://wordpress.org/support/topic/esi-and-private-cache-problem-with-logout-nonce/)
 *  Thread Starter [monoor](https://wordpress.org/support/users/monoor/)
 * (@monoor)
 * [2 years ago](https://wordpress.org/support/topic/esi-and-private-cache-problem-with-logout-nonce/#post-17879673)
 * [ls log when logout](https://drive.google.com/file/d/1kkvlQPc-7QMcx5QxZ9y4t9c19E8J-78c/view?usp=sharing)
 * [ls log when login user open ?test](https://drive.google.com/file/d/1bU6YUn6DpKMHJK61dsWoDloacauuTQ3j/view?usp=sharing)
 * I put it and the link of the logout button is still cached and the nonce it displays
   is the same for everyone
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Salt Shaker] login problem](https://wordpress.org/support/topic/login-problem-179/)
 *  Thread Starter [monoor](https://wordpress.org/support/users/monoor/)
 * (@monoor)
 * [2 years ago](https://wordpress.org/support/topic/login-problem-179/#post-17874028)
 * Thanks, is this problem only on my site? Or on all sites?
 * If on all sites, then this plugin plays the most destructive role and disrupts
   the user experience.
   So why is it useful?
 * I use my-account WooCommerce login page, If it’s only on my site, do you have
   any suggestions on how to fix it?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] delete image metadata problem](https://wordpress.org/support/topic/delete-image-metadata-problem/)
 *  Thread Starter [monoor](https://wordpress.org/support/users/monoor/)
 * (@monoor)
 * [2 years ago](https://wordpress.org/support/topic/delete-image-metadata-problem/#post-17872927)
 * Is there a way to disable WooCommerce image regenerator altogether?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] esi and private cache problem with logout nonce](https://wordpress.org/support/topic/esi-and-private-cache-problem-with-logout-nonce/)
 *  Thread Starter [monoor](https://wordpress.org/support/users/monoor/)
 * (@monoor)
 * [2 years ago](https://wordpress.org/support/topic/esi-and-private-cache-problem-with-logout-nonce/#post-17872677)
 * When I clicked the logout button (and confirmed, because of cache and wrong nonce),
   this log was generated:
 * [ls log 2(click here)](https://drive.google.com/file/d/1cJa8QeMOYY3EkI7y8zAAGxezjkIjwz8h/view?usp=sharing)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] esi and private cache problem with logout nonce](https://wordpress.org/support/topic/esi-and-private-cache-problem-with-logout-nonce/)
 *  Thread Starter [monoor](https://wordpress.org/support/users/monoor/)
 * (@monoor)
 * [2 years ago](https://wordpress.org/support/topic/esi-and-private-cache-problem-with-logout-nonce/#post-17872646)
 * As it is in the log, this role is not an admin: `[Router] get_role: **customer**`
 * But I don’t know why **admin bar** is written yes.
 * And I tested this with a **subscriber** role, the result was the same as the 
   previous report.
 * Anyway, isn’t **wc_logout_url** a function for WooCommerce? Shouldn’t the way
   its nonce work be the same on all sites?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] esi and private cache problem with logout nonce](https://wordpress.org/support/topic/esi-and-private-cache-problem-with-logout-nonce/)
 *  Thread Starter [monoor](https://wordpress.org/support/users/monoor/)
 * (@monoor)
 * [2 years ago](https://wordpress.org/support/topic/esi-and-private-cache-problem-with-logout-nonce/#post-17871719)
 * [ls log (click here)](https://drive.google.com/file/d/1HQHQyULkizz1QddCaH0gk9lRDWXyyJaY/view?usp=sharing),
   log is for a user with the customer role
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] esi and private cache problem with logout nonce](https://wordpress.org/support/topic/esi-and-private-cache-problem-with-logout-nonce/)
 *  Thread Starter [monoor](https://wordpress.org/support/users/monoor/)
 * (@monoor)
 * [2 years ago](https://wordpress.org/support/topic/esi-and-private-cache-problem-with-logout-nonce/#post-17869836)
 * No I didn’t, please guide me how to do it?
 * This is the code that creates the menu list and the LOGOUT button link at the
   end:
 *     ```wp-block-code
       <?php foreach ( wc_get_account_menu_items() as $endpoint => $label ) : ?>    <li class="<?php echo wc_get_account_menu_item_classes( $endpoint ); ?>">        <a href="<?php echo esc_url( wc_get_account_endpoint_url( $endpoint ) ); ?>"><?php echo esc_html( $label ); ?></a>    </li><?php endforeach; ?>
       ```
   
 * We can also have the LOGOUT button outside the FOREACH like this:
 *     ```wp-block-code
       <li class="wc-account-menu-item logout">    <a href="<?php echo esc_url( wc_logout_url() ); ?>">logout</a></li>
       ```
   
    -  This reply was modified 2 years ago by [monoor](https://wordpress.org/support/users/monoor/).
      Reason: add alone logout
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] esi and private cache problem with logout nonce](https://wordpress.org/support/topic/esi-and-private-cache-problem-with-logout-nonce/)
 *  Thread Starter [monoor](https://wordpress.org/support/users/monoor/)
 * (@monoor)
 * [2 years ago](https://wordpress.org/support/topic/esi-and-private-cache-problem-with-logout-nonce/#post-17867453)
 * Thanks, 1- so to cache privately, it should be used like this?:
 *     ```wp-block-code
       add_action( 'litespeed_esi_load-my_esi_block', 'my_esi_block_esi_load' );function my_esi_block_esi_load(){do_action( 'litespeed_control_set_private' );echo "hi";}
       ```
   
 * 2- If we don’t set ttl, the cache will remain indefinitely?: `do_action( 'litespeed_control_set_ttl',
   300 );`
 * 3- Is there a way to force the content cache of this esi to be cleared during
   an operation?
   (only for that user)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] esi problem for admin bar](https://wordpress.org/support/topic/esi-problem-for-admin-bar/)
 *  Thread Starter [monoor](https://wordpress.org/support/users/monoor/)
 * (@monoor)
 * [2 years ago](https://wordpress.org/support/topic/esi-problem-for-admin-bar/#post-17861457)
 * It worked and the test was successful, thank you
   Just a few questions:
 * 1- That this will not affect the performance of caching on users?
 * 2- Will the permanent update to fix this problem interfere with this code?
 * 3- Will the time for permanent update to fix this problem come soon or late?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] esi problem for admin bar](https://wordpress.org/support/topic/esi-problem-for-admin-bar/)
 *  Thread Starter [monoor](https://wordpress.org/support/users/monoor/)
 * (@monoor)
 * [2 years ago](https://wordpress.org/support/topic/esi-problem-for-admin-bar/#post-17860827)
 * So we have to wait for LS C update. Is this a new known problem? Or has it been
   around for a long time and has not been addressed?
 * To predict the time to fix the problem…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] esi problem for admin bar](https://wordpress.org/support/topic/esi-problem-for-admin-bar/)
 *  Thread Starter [monoor](https://wordpress.org/support/users/monoor/)
 * (@monoor)
 * [2 years ago](https://wordpress.org/support/topic/esi-problem-for-admin-bar/#post-17859426)
 * There is no way to turn off ESI for the admin role?
   Filter or…?

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/users/monoor/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/monoor/replies/page/2/?output_format=md)