Trigger_Refetch_All not working. #33260
Labels
topic: source-wordpress
Related to Gatsby's integration with WordPress
type: bug
An issue or pull request relating to a bug in Gatsby
Preliminary Checks
Description
I had created following issue on wp-gatsby, but after talking with @TylerBarnes, the issue should be opened here.
We had discussed about a syncing issue with a plugin and you had asked me to use trigger_refetch_all which is also used by permalink_structure changes. The function didn't work (implementation example below). I also tested permalink structure change, which also didn't seemed to do any rebuilds. When i started digging around the gatsby-source-wordpress plugin, I noticed 2 things and I am not sure if they are the cause or I am completely looking into the wrong place. #1) There is no conditional for REFETCH_ALL here which probably is okay. #2) Also, noticed the conditional here was evaluating to false for REFETCH_ALL and never hitting this.
@TylerBarnes had suggested a fix, so I will be checking that out and see if I can do a PR
Reproduction Link
https://gatsby.dev/reproduction
Steps to Reproduce
...
Expected Result
Permalink structure change should reflect on Gatsby
Actual Result
Permalink structure change should reflect on Gatsby
Environment
Config Flags
No response
The text was updated successfully, but these errors were encountered: