Beans
ProductsPricingBlog
  • 🚀Getting Started
  • Members
    • Add a member
    • Adjust a member's balance
    • Deactivating a member
    • Import members
    • Custom fields
      • Custom fields on registration
  • rewards
    • Rules
      • Registration
      • Loyalty
      • Cart Booster
      • Facebook Page Like
      • Twitter Follow
      • Instagram Follow
      • Refer a friend
      • Accept referral Invitation
      • Inactivity
      • Celebration
      • Expiration
      • Birthday
    • Tiers
    • Display
      • Redemption block
    • Redemption
      • Redeem points
      • Pending Debits
      • Redemption rate
      • Redemption conditions
      • Buy products with points
      • Redemption issues
    • FAQ
      • How are loyalty revenues generated?
      • Adding Custom CSS
      • Disable checkout auto-redirect
      • Enrollment of customers in the rewards program
      • Why do rules have minimum points?
      • Loyalty points calculation
  • Referrals
    • Getting started
    • Rules
      • Accept Invitation
      • Successful Referral
    • Display
      • Link your referral page to your Shopify store.
      • Link your referral page to your Woocommerce store.
    • Conditions
    • Referrals
    • FAQ
      • Adding Custom CSS
      • Why registration is enforced for referrals.
      • Can Bamboo be used for affiliate marketing?
      • How to test Bamboo?
  • Emails
    • Rules
      • Loyalty â–¸ Welcome
      • Loyalty â–¸ Balance reminder
      • Loyalty â–¸ New transaction
      • Loyalty â–¸ Post-purchase invitation
      • Referral â–¸ Invitation
      • Referral â–¸ Referrer reward
      • Referral â–¸ Friend reward
    • Campaigns
    • Sender email
    • FAQ
      • Replacement tags
      • Sender address
      • Gmail's warning messages
      • Testing email notifications
  • More Apps
    • Social Connect
      • Display
    • Widget
      • Messages
  • INTEGRATIONS
    • Getting Started with Integrations
    • Shopify
      • Referencing Shopify pages
      • Enable customer accounts
      • Template Migration
      • Shopify OS 2.0
      • Using discount codes with redemption
      • Shopify POS
      • Shopify Limitations
      • Uninstallation
      • Shopify customers tags
    • Woocommerce
      • Account Synchronization
      • Referencing WooCommerce pages
      • Setting up permalinks
      • Edit Beans pages
      • Updating your shop domain
      • Manually Installing Beans
      • Reset and reconnect
      • Caching issues
      • Connection Issues
    • Facebook Integration
    • Judge.me Integration
    • Mailchimp Integration
    • Omnisend Integration
    • Sendinblue Integration
    • Weglot Integration
    • API
      • Webhooks
      • Storefront
  • Settings
    • General
    • App activation
    • Plan & Billing
      • Account Suspension
      • List of plans
      • Refund Policy
      • Supported currencies
    • Team access
    • Live Testing
  • FAQ
    • Limitations
    • Phone Support
    • Why is Beans better than the other options?
    • What will my customers see?
    • Can I reach an engineer to talk about technical issues?
    • POS Support
    • Security
    • Terms of Service
    • Privacy Policy
    • GDPR
Powered by GitBook
On this page

Was this helpful?

  1. INTEGRATIONS
  2. Woocommerce

Caching issues

Issues with rewards and referral program not loading due to cache

PreviousReset and reconnectNextConnection Issues

Last updated 2 years ago

Was this helpful?

Many WordPress websites rely on caching to deliver good performance to visitors. While caching is very advantageous to improve website traffic, it has the inconvenience to be hard to debug especially for dynamic websites.

In the majority of cases, it is recommended to not cache dynamic pages, because the version of the page cached can be outdated or inaccurate. There are 2 types of pages on a website: static pages and dynamic pages. A static page is static as the name suggests, meaning that its content does not change. On the opposite, dynamic pages change often and therefore are not suited for being cached.

We recommend excluding the rewards program page and the referral program page from your caching system because they are dynamic pages that do not display the same content for each customer.

Here is a step-by-step instruction on how to achieve that with WP Rocket.

  • Go to WP Rocket > File Optimization section

  • Uncheck all checkboxes in the JavaScript Files section and save

  • Go to Advanced Rules option and add these lines into Never Cache URLs section:

/rewards-program/(.) 
/referral-program/(.) 
/my-account/(.*)
  • Scroll down and save.

  • Clear your cache and go to the program pages in your store.

Console error

Beans scripts should always be loaded from Beans' official CDN. Caching Beans scripts may result in console errors. While it is recommended to not cache Beans scripts, Beans may function as expected even while being cached. If you decide to use a cached version of Beans you may get this error message in your browser's console, which can be ignored.

Uncaught TypeError: Cannot read properties of undefined (reading 'Radix')