Cache regeneration Cron – Wrong URL (404)
-
Hello,
we are using WP Rest Cache plugin to cache our REST API responses and they’re getting cached okay. But if we enable the cron that regenerates caches, the URL’s that are being called are wrong (so we get 404’s).
If i check in the database, it looks okay (request_uri), and also if i do the var_dump to regenerate_expired_caches function, the $result[‘request_uri’] looks fine. Same thing if i manually run the cron with wp-cli.
But when the URL is called from WordPress, we see 404 in our nginx logs. It usually looks something like:
domain.com/en//en/wp-json/wp/v2/properties?something=something – this makes a redirect to
domain.com/en/en/wp-json/wp/v2/properties?something=something which is a 404. Correct URL would be domain.com/en/wp-json/wp/v2/properties?something=somethings, so i think that we get a double WPML language code somewhere.Have anyone had any experience with this behavior?
Thanks.
- The topic ‘Cache regeneration Cron – Wrong URL (404)’ is closed to new replies.