Skip to content
English
  • There are no suggestions because the search field is empty.

Fix a widget showing outdated times

Widget showing old times or wrong wait times? Clear your browser and WordPress plugin caches and exclude the widget from caching.

Your NextPatient widget pulls live availability from your EHR every time the page loads or refreshes, so patients should always see your current open times. If the widget shows appointment slots that are already taken, times that no longer exist, or online queue wait times that don't match what your office sees, the page is usually being served from a saved copy (a cache) instead of loading fresh.

This most often happens on WordPress sites that use a caching plugin to speed up load times for visitors. Common caching plugins include:

  • W3 Total Cache
  • WP Super Cache
  • WP Rocket
  • WP Fastest Cache
  • Hyper Cache
  • Comet Cache
  • Cachify
  • NitroPack

How to fix a widget showing outdated times

Work through these steps in order. Each one rules out a different cause.

Step 1: Clear your browser cache

First, check whether the problem is only happening on your computer.

  1. Open the page with the widget in a private or incognito browser window.
  2. If the widget shows current times there, clear your browser's cache and reload the page.

If the widget still shows outdated times in a private window, the saved copy is coming from your website, not your browser. Move on to step 2.

Step 2: Clear your caching plugin's cache

  1. Log in to your WordPress admin dashboard.
  2. Open your caching plugin's settings.
  3. Find the option to clear or purge the cache, and run it.
  4. Reload the page with the widget and check that the times are current.

Note: The exact steps vary by plugin. Check your plugin's own documentation, or see this guide to clearing plugin caches in WordPress from MHThemes.

Step 3: Exclude the NextPatient widget from caching

Clearing the cache fixes the problem for now, but it can come back the next time the plugin saves a copy of the page. To keep it from happening again, ask your web maintenance team to exclude the NextPatient widget from caching.

Tip: To see where the NextPatient script tag sits on a WordPress page, see: Add the booking widget to a WordPress site.

Known exclusion settings:

  • NitroPack: Add the keyword nitro-exclude to the NextPatient script tag, so it looks like this: <script nitro-exclude src="https://nextpatient.co/…

For other plugins, your web team can find the script exclusion setting in the plugin's documentation.

If the widget still shows outdated times after these steps, submit a support request or reach out to your account manager.

FAQs

Why does the widget show times that are already booked?

Usually because the page is being served from a cached copy. The widget itself loads live availability from your EHR, but a caching plugin can show visitors an older version of the page. Clear your caches and exclude the widget from caching to fix it.

Can caching affect online queue wait times too?

Yes. A cached page can show an old wait time for your walk-in online queue the same way it can show old appointment slots, and the same steps fix both. If the wait time is still wrong in a private window, check your queue settings in How online queue wait times are calculated.

Does this apply to every NextPatient widget?

Yes. Caching can affect the booking widget, provider bio widget, location dropdown, and walk-in online queue widget. The same steps fix all of them.

Do I have to clear the cache every time this happens?

No. Clearing the cache is a quick fix. Excluding the NextPatient widget from your caching plugin (step 3) keeps it from happening again.

The widget looks right on my computer but patients say the times are wrong. Why?

Your browser may be loading a fresh copy while visitors get the cached one, or the other way around. Check the page in a private or incognito window to see what patients see, then clear your plugin's cache.