Title: nihalkumar's Replies | WordPress.org

---

# nihalkumar

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Code Snippets] Code Snippet not working](https://wordpress.org/support/topic/code-snippet-not-working/)
 *  Thread Starter [nihalkumar](https://wordpress.org/support/users/nihalkumar/)
 * (@nihalkumar)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/code-snippet-not-working/#post-16120784)
 * **Yes. Even this simplified code is not working!**
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Exclude PayPal Buttons JS from caching](https://wordpress.org/support/topic/exclude-paypal-buttons-js-from-caching/)
 *  Thread Starter [nihalkumar](https://wordpress.org/support/users/nihalkumar/)
 * (@nihalkumar)
 * [4 years ago](https://wordpress.org/support/topic/exclude-paypal-buttons-js-from-caching/#post-15695399)
 * **You:** you may refer to exclude it from being optimized, in that case, it’s
   in page optm -> tune setting -> JS exclude and defer JS exclude fields
 * **Me:** I tried this, but didn’t work.
    1. How to reset LSCWP to default settings?
    2. Since the buttons are working perfectly on the cart and checkout pages (because
       caching is disabled on these pages), shall I disable caching on the pages where
       the buttons are present?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce PayPal Payments] WooCommerce PayPal Payments is not working!](https://wordpress.org/support/topic/woocommerce-paypal-payments-is-not-working/)
 *  Thread Starter [nihalkumar](https://wordpress.org/support/users/nihalkumar/)
 * (@nihalkumar)
 * [4 years ago](https://wordpress.org/support/topic/woocommerce-paypal-payments-is-not-working/#post-15695377)
 * **You:** Or alternatively, is there a way for you to whitelist the button scripts
   [as mentioned here](https://woocommerce.com/document/woocommerce-paypal-payments/#faq-paypal-smart-buttons-not-loading)?
 * **Me:** It didn’t work.
 * **You:** Have you tried disabling the cache on all pages where the smart buttons
   would be loaded like the start page and also the single-product pages?
 * **Me:** I think this is the only option left now. Right? Is there any other solution?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Exclude PayPal Buttons JS from caching](https://wordpress.org/support/topic/exclude-paypal-buttons-js-from-caching/)
 *  Thread Starter [nihalkumar](https://wordpress.org/support/users/nihalkumar/)
 * (@nihalkumar)
 * [4 years ago](https://wordpress.org/support/topic/exclude-paypal-buttons-js-from-caching/#post-15683971)
 * **Hi. The problem is not solved.**
 * **Current Setup:**
    I’m using these plugins: LiteSpeed Cache, WooCommerce, and
   WooCommerce PayPal Payments. I have enabled the PayPal buttons on the single 
   product pages. And, I’ve added a single product page shortcode on the homepage(
   so the PayPal button is on the homepage also).
 * Also, please explain to me: how to exclude the PayPal JS from caching (check 
   the link with the screenshot).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Exclude PayPal Buttons JS from caching](https://wordpress.org/support/topic/exclude-paypal-buttons-js-from-caching/)
 *  Thread Starter [nihalkumar](https://wordpress.org/support/users/nihalkumar/)
 * (@nihalkumar)
 * [4 years ago](https://wordpress.org/support/topic/exclude-paypal-buttons-js-from-caching/#post-15676036)
 * I did it. Also, I have enabled the PayPal (WooCommerce) buttons on the homepage.
 * I will check the buttons on 3 consecutive days. And, tell you how it goes.
 * Thanks 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Exclude PayPal Buttons JS from caching](https://wordpress.org/support/topic/exclude-paypal-buttons-js-from-caching/)
 *  Thread Starter [nihalkumar](https://wordpress.org/support/users/nihalkumar/)
 * (@nihalkumar)
 * [4 years ago](https://wordpress.org/support/topic/exclude-paypal-buttons-js-from-caching/#post-15672683)
 * Thank you for your reply. Report number: PCOTAVCU
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce PayPal Payments] WooCommerce PayPal Payments is not working!](https://wordpress.org/support/topic/woocommerce-paypal-payments-is-not-working/)
 *  Thread Starter [nihalkumar](https://wordpress.org/support/users/nihalkumar/)
 * (@nihalkumar)
 * [4 years ago](https://wordpress.org/support/topic/woocommerce-paypal-payments-is-not-working/#post-15658910)
 * Hi. The PayPal button is working perfectly on the cart page. So, I have disabled
   the button from the individual product page. I have no problem removing the button
   from the individual product page.
 * Is this solution perfect? Will the button work perfectly in the future (on the
   cart page)?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Issue due to caching](https://wordpress.org/support/topic/issue-due-to-caching/)
 *  Thread Starter [nihalkumar](https://wordpress.org/support/users/nihalkumar/)
 * (@nihalkumar)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/issue-due-to-caching/#post-15609476)
 * Now, the website is loading perfectly.
 * The problem always arises after a week or two. After I log in & purge the cache,
   the problem gets solved. Then, the problem comes again after a few days. This
   process keeps on repeating.
 * Please see the screenshot showing the problem:
    [https://drive.google.com/file/d/18z3onhMPtyPp1OSCVKeXNE-AYa-1sWL4/view?usp=sharing](https://drive.google.com/file/d/18z3onhMPtyPp1OSCVKeXNE-AYa-1sWL4/view?usp=sharing)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Issue due to caching](https://wordpress.org/support/topic/issue-due-to-caching/)
 *  Thread Starter [nihalkumar](https://wordpress.org/support/users/nihalkumar/)
 * (@nihalkumar)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/issue-due-to-caching/#post-15604111)
 * Thank you for your reply.
    This is the report number: NKZBMXMK
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce PayPal Payments] WooCommerce PayPal Payments is not working!](https://wordpress.org/support/topic/woocommerce-paypal-payments-is-not-working/)
 *  Thread Starter [nihalkumar](https://wordpress.org/support/users/nihalkumar/)
 * (@nihalkumar)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/woocommerce-paypal-payments-is-not-working/#post-15599208)
 * **Any update on the problem?**
 * **One additional observation:**
    1. It again started to show the error. 2. When
   I purged the cache of the WordPress website, the error stopped again.
 * **Why?**
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce PayPal Payments] WooCommerce PayPal Payments is not working!](https://wordpress.org/support/topic/woocommerce-paypal-payments-is-not-working/)
 *  Thread Starter [nihalkumar](https://wordpress.org/support/users/nihalkumar/)
 * (@nihalkumar)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/woocommerce-paypal-payments-is-not-working/#post-15592002)
 * Hi Niklas.
 * This is what I did:
    1. I first created a backup of the whole website. 2. Deactivated
   all themes & plugins (installed Storefront theme). 3. Problem resolved. 4. I 
   started activating the theme & plugins one by one (to find the culprit). 5. I
   activated all of them, but the error didn’t show again. 6. I restored the website
   from the backup (to restore the error). 7. But, to my surprise, the error didn’t
   show again.
 * NOTE: This error always appears & disappears by itself. Whenever the error appears,
   I do something to remove the error & the error vanishes. But, it appears again
   after a day or two.
 * Thank you.
 * Best regards,
    Nihal.

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