tenderfeel
Forum Replies Created
-
Forum: Plugins
In reply to: [WP REST Cache] Issue with using Amazon Web ServicesThank you for the verification.
I’ve read the source of the plugin since then and understand that it only uses the request path when storing the cache.The plugin cache works when accessing the endpoint on the same domain as the WordPress admin screen, but otherwise it doesn’t work no matter which domain you access.
I added var_dump to various parts of the plugin to verify where it stopped working.
1. sources/wp-rest-cache.php (Line 25)
2. wp-rest-cache.php (Line 41)
3. class-plugin.php (Line 123)
4. class-plugin.php (Line 140)
5. sources/wp-rest-cache.php (Line 28)
6. class-endpoint-api.php (Line 292)I entered the URL of the endpoint directly into the Chrome address bar and checked if the var_dump string was displayed with the response JSON.
In the case of a domain on the admin screen, all six logs will be displayed.
In the case of other domains that include a display domain, only 2 to 4 will be displayed.
Locally, all but 1 and 5 are displayed.The server configuration is said to look like this.
🙎♂️User
↓
CloudFront
→ Load Balancer → Nuxt.js Server(EC2)
→ Load Balancer → WordPress Server(EC2) → MySQL ← WordPress Admin(EC2)Basic authentication is used for the development environment.
Will it be a solution hint?
I will continue to look into the cause….