Replies: 0
I use wp-json
in my website. I have REST routes that depends on query parameters
https://example.com/wp-json/book/bycategory?category=category1
https://example.com/wp-json/book/bycategory?category=category2
https://example.com/wp-json/book/bycategory?category=category3
https://example.com/wp-json/book/bycategory?category=category4
Each of the above REST routes returns different results, which is the expected behaviour.
I have a licence key for PRO version for my website example.com
, and caching is enabled for REST API links.
Yesterday, I moved my website to example.net
. After I moved my website, all of my rest apis with the same path and different query parameters return the same result.
All of the routes
https://example.net/wp-json/book/bycategory?category=category1
https://example.net/wp-json/book/bycategory?category=category2
https://example.net/wp-json/book/bycategory?category=category3
https://example.net/wp-json/book/bycategory?category=category4
Returned the result that was expected from the first route /wp-json/book/bycategory?category=category1
. I think what happened is that after I moved to another domain, all the four routes resulted were served from the cache of the first route.
I solved this issue temporarily by disabling cache for routes.
How can I fix this issue(Need to enable caching for REST API)?
Also after I moved to a new domain, I started receiving a message telling me that The W3 Total Cache license key is not active for this site. You can switch your license to this website following this link.
When I click on “this link” link, I get a message that says “Email with a link for license reset was sent to you”, but I don’t get any email from W3 Total Cache.
How can I change to the new domain?
-
This topic was modified 1 hour, 28 minutes ago by abozanona.