• Ask Question
  • Knowledge Base
Login/Register All Themes
  • Home
  •   -  
  • Knowledge Base
  •   -  
  • RealHomes Theme
  •   -  
  • How to Configure RealHomes with Cache Plugins (LiteSpeed, WP Rocket, etc.)

How to Configure RealHomes with Cache Plugins (LiteSpeed, WP Rocket, etc.)

If you are using a cache plugin like LiteSpeed Cache, WP Rocket, or any other caching tool, you may encounter issues with interactive features like AJAX Login, Registration, Add to Favorites, or Property Submissions. This is usually because these features rely on security tokens called Nonces, which expire if they are cached for too long.

To ensure RealHomes works perfectly with your cache plugin, you need to tell the plugin which security tokens (nonces) should remain dynamic and never be cached.

LiteSpeed Cache Configuration (Highly Recommended)

If you are using LiteSpeed Cache, the best way to handle this is by using the ESI (Edge Side Includes) feature. This allows the theme to serve fresh security tokens even on fully cached pages.

  1. Navigate to LiteSpeed Cache → Cache → [5] ESI.
  2. Enable ESI if it is not enabled before.
  3. Find the field: ESI Nonces.
  4. Copy and paste the following list (one per line) and save the settings:
inspiry-ajax-login-nonce
inspiry-ajax-register-nonce
inspiry-ajax-forgot-nonce
ere_inline_otp_nonce
ere_social_login_nonce
add_to_favorite_nonce
favorites_nonce
fav_share_nonce
compare_share_nonce
similar_property_nonce
inspiry_save_search
saved_searches_nonce
agency_search_nonce
agent_search_nonce
send_message_nonce
agent_message_nonce
schedule_a_tour_nonce
rvr_booking_request
realhomes_report_property_form_nonce
send_cfos_message_nonce
submit_property
submit_agent_agency
update_user
inspiry_allow_upload
dashboard_analytics_nonce
rh_unit_switcher_nonce

Fixing Google reCAPTCHA Issues

If you use Google reCAPTCHA and see errors like “reCAPTCHA Failed: The response parameter is missing,” you should exclude reCAPTCHA scripts from being combined or deferred.

In LiteSpeed Cache → Page Optimization → Tuning, add the following to JS Excludes:

  • https://www.google.com/recaptcha/api.js
  • grecaptcha
  • loadInspiryReCAPTCHA

General Advice for Other Cache Plugins (WP Rocket, Autoptimize, etc.)

If your cache plugin does not support ESI (like WP Rocket), you should avoid caching the following pages:

  • Login & Register Page
  • User Dashboard Pages (My Properties, Profile, etc.)
  • Submit Property Page

For interactive features on other pages (like the “Favorite” button), you should set your Cache Lifespan to less than 12 hours (ideally 10 hours) because WordPress nonces expire every 12-24 hours.


I hope this guide helps your users achieve a fast and fully functional website! Let me know if you need any adjustments to the text or the nonce list.

Knowledge Base

  • RealHomes Theme
  • Real Places Theme
  • Medical Press Theme
  • Common Questions
  • Common Issues
  • WordPress General
  • WordPress Basics
  • Cream Theme
  • Food Recipe Theme
  • HealthPress Theme
  • Elegantia Theme
© 2026 InspiryThemes, All rights reserved.

Resources

  • Inspiry Themes
  • Blog
  • ThemeForest Portfolio

More

  • Contact
  • Customization
  • Feedback