Title: Cache REST API enable returned 500 error
Last modified: March 26, 2020

---

# Cache REST API enable returned 500 error

 *  Resolved [fun0](https://wordpress.org/support/users/fun0/)
 * (@fun0)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/cache-rest-api-enable-returned-500-error/)
 * When enable Cache REST API option.
    Reset Api will return 500. but response looks
   like well If I disable this option. everything working fine!
 * LiteSpeed Cache
    Version 2.9.9.2
 * Wordpress
    Version 5.3.2

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/cache-rest-api-enable-returned-500-error/#post-12587852)
 * Hi,
 * Could you please check PHP error log and see if there is anything ?
 * Best regards,
 *  [twobyte](https://wordpress.org/support/users/twobyte/)
 * (@twobyte)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/cache-rest-api-enable-returned-500-error/#post-12988052)
 * I am having the exact same problem, cannot run my app with the Cache REST API
   option switched on.
 * GET [https://www.domain.org/wp-json/wp/v2/cpt/?per_page=100](https://www.domain.org/wp-json/wp/v2/cpt/?per_page=100)
   is passing 500 error
    to the browser, and the error.log is saying:
 * `WARN lsapi Module:Cache vary request header "Origin" not defined!`
 * Just loading the URL in browser window works..
 * App is running off same domain, so cannot see how it could be CORs?
 * How was this resolved? Any help appreciated.
 * Thanks
 *  [imokweb](https://wordpress.org/support/users/imokweb/)
 * (@imokweb)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/cache-rest-api-enable-returned-500-error/#post-13545028)
 * Hello,
 * Same issue here. The API request works fine it’s just the status throws 500.
   
   Why is this happening?
 * Thanks!
    Istvan
 *  [twobyte](https://wordpress.org/support/users/twobyte/)
 * (@twobyte)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/cache-rest-api-enable-returned-500-error/#post-13546024)
 * Updating openlitespeed web server fixed this for me. If I remember correctly,
   the shell command was something like lsup.sh
 *  [imokweb](https://wordpress.org/support/users/imokweb/)
 * (@imokweb)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cache-rest-api-enable-returned-500-error/#post-13819871)
 * Hi [@twobyte](https://wordpress.org/support/users/twobyte/), thanks for your 
   response.
    I updated LS but the issue still persists for me.
 * Error.log & Access.log don’t show any signs of errors dough.
    [@qtwrk](https://wordpress.org/support/users/qtwrk/)
   Can you please let me know what direction to proceed in detecting where the issue
   is.
 * Thanks!
    Istvan
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cache-rest-api-enable-returned-500-error/#post-13819902)
 * Hi,
 * sorry , kind of forget what was the issue.
 * I think it was openlitespeed issue and update to latest should fix it
 * /usr/local/lsws/admin/misc/lsup.sh -e 1.7.7
 * Best regards,

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Cache REST API enable returned 500 error’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/cache-rest-api-enable-returned-500-error/#post-13819902)
 * Status: resolved