davidrouyer
Forum Replies Created
-
Forum: Plugins
In reply to: [WP REST Cache] Support for the _embed query paramI fixed my problem. It was due to a misconfiguration. I use WordPress on top of Kubernetes with the Bitnami Docker image and it works differently from a normal installation.
Forum: Plugins
In reply to: [WP REST Cache] Support for the _embed query paramIt doesn’t fix my problem :/
Forum: Plugins
In reply to: [WP REST Cache] Support for the _embed query paramI previously installed W3 Total Cache before installing WP REST Cache
It automatically added define(‘WP_CACHE’, true); to the wp-config.php file.
Then I deactivated W3 Total Cache to install WP REST Cache but the define(‘WP_CACHE’, true); remained.
I deleted W3 Total Cache, removed that variable and it seems to work fine now.
Forum: Plugins
In reply to: [WP REST Cache] Support for the _embed query paramI never have such an issue without it, this is why I report it ??
I’m currently running WordPress 5.2.2 on PHP 7.3.
I only have Yoast SEO 11.5 and ACF Pro 5.8.1 and custom plugins I’ve written myself to add custom types to WordPress.
I’ll try to debug the issue myself this week-end en report back to you.
Forum: Plugins
In reply to: [WP REST Cache] Support for the _embed query paramI tried with and without &skip_cache=1 and you’re right, the response is the same. But my point is it always works when I disable the plugin. If I disable the plugin, https://staging.wp.hopfab.com/wp-json/wp/v2/projects?slug=agencement-surmesure-bureaux-alter-solution&_embed returns correctly the _embedded part.
It’s difficult to spot since it breaks randomly on endpoints when I disable/enable the plugin.
Forum: Plugins
In reply to: [WP REST Cache] Support for the _embed query paramMaybe it will be easier to reproduce on the posts endpoint:
https://staging.wp.hopfab.com/wp-json/wp/v2/posts?_embed&page=1&per_page=5&categories=1 it works
https://staging.wp.hopfab.com/wp-json/wp/v2/posts?_embed&page=1&per_page=5&categories=
it doesn’t work, _embedded is missingForum: Plugins
In reply to: [WP REST Cache] Support for the _embed query paramSorry @acato, I desactivated it on my production environment.
It looks like most of the time it works, but sometimes it doesn’t … You can take a look at my staging environment and this post https://staging.wp.hopfab.com/wp-json/wp/v2/projects?slug=agencement-surmesure-bureaux-alter-solution&_embed