[ad_1]
[ad_2]
Hi everyone,
I'm facing an issue with caching using WPGraphQL and the WPGraphQL Smart Cache plugin on my WordPress site. Here’s a brief overview of the problem I’m encountering:
Issue: I’ve configured WPGraphQL Smart Cache to cache GraphQL queries. However, I’m experiencing the following issues:
- No
x-cacheHeader: I’m not seeing thex-cacheheader in the network responses when making GraphQL requests. - Cache Not Invalidating: Even though the plugin is activated, updates made in WordPress (e.g., editing posts) are not reflected in the GraphQL queries. The data returned by the queries remains stale.
Steps Taken:
- Verified that WPGraphQL Smart Cache is activated and configured correctly.
- Attempted to manually clear and reset the cache.
- Checked network response headers for cache-related information, but no
x-cacheheader is present. - Tried using
fetchPolicy: "no-cache"in my Apollo Client queries to bypass cache, but it didn’t resolve the issue.
Questions:
- Has anyone experienced similar issues with WPGraphQL Smart Cache not working or not showing the
x-cacheheader? - Are there additional configurations or troubleshooting steps I might be missing?
- Are there alternative caching solutions for GraphQL queries in WordPress that you would recommend?
consider I use just WordPress in local area with nextjs, in some tutorials I faced wpEngine
I’d appreciate any insights or suggestions from the community. Thank you in advance for your help!
