• Resolved jfkeidel

    (@jfkeidel)


    On my website, I have a plugin with a library of REST API custom endpoints for accessing data from the website’s database. The endpoints are called from a remote application using CURL. The website also utilizes QUIC.cloud.
    Based on a series of tests, I discovered that the API responses were being cached. Even after manually changing the data, the old data was being returned by the API.

    On the Cache tab of the LiteSpeed Cache settings, I switched the “Cache REST API” setting to Off. However, further testing proved that the old data was still being returned.

    Any thoughts on how to resolve this issue?

Viewing 1 replies (of 1 total)
  • Thread Starter jfkeidel

    (@jfkeidel)

    I figured it out! I added the REST route of the endpoints to LiteSpeed Plugin > Cache > Excludes > Do Not Cache URIs

    /wp-json/myroute/v1/

    Now it works!

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.