Issues with ShopMagic and LiteSpeed Caching

Q: Why am I seeing old data or settings in ShopMagic when LiteSpeed Cache is enabled?

A: When the LiteSpeed Cache plugin is active on your WordPress website, it may cache REST API requests by default. This caching mechanism is designed to speed up your website by storing responses so they don't have to be generated each time. However, when it comes to dynamic requests – such as those made by the admin dashboard in ShopMagic – this can lead to problems such as displaying outdated data or not showing the latest changes like newly created automations.

Q: What can I do to resolve the outdated data display issue in ShopMagic when using LiteSpeed Cache?

A: To ensure that you always see the most up-to-date information in ShopMagic, you need to exclude the REST API requests from being cached by LiteSpeed. Specifically, you want to disable caching for any requests made to the example.com/wp-json/shopmagic path. Here's how you can do this:

  1. Log into your WordPress dashboard.
  2. Navigate to LiteSpeed Cache > Settings > Excludes.
  3. In the "Do Not Cache URIs" section, add the following exclusion rule: wp-json/shopmagic.*
  4. Save your changes.

By doing this, you tell LiteSpeed Cache not to cache any requests that are directed toward ShopMagic's REST API endpoints. As a result, you'll ensure that your ShopMagic admin dashboard displays the most current data, reflecting your latest changes and newly created automations without interference from the cache.

Q: Will disabling caching for ShopMagic REST API affect my site's performance?

A: Disabling caching for the specific REST API path used by ShopMagic is a targeted approach that should not significantly impact the overall performance of your site. The exclusion is limited to ShopMagic's API requests, while the rest of your website will continue to benefit from LiteSpeed's caching functionality.

Remember, if you have any additional issues or require further assistance, don't hesitate to reach out to the support teams for ShopMagic or LiteSpeed. They can provide you with more detailed guidance tailored to your situation.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us