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.
- Navigate to LiteSpeed Cache → Cache → [5] ESI.
- Enable ESI if it is not enabled before.
- Find the field: ESI Nonces.
- 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.jsgrecaptchaloadInspiryReCAPTCHA
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.