Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing Permalink not doing a clean rebuild on gatsby cloud #195

Open
psharma-ii opened this issue Sep 8, 2021 · 0 comments
Open

Changing Permalink not doing a clean rebuild on gatsby cloud #195

psharma-ii opened this issue Sep 8, 2021 · 0 comments

Comments

@psharma-ii
Copy link

psharma-ii commented Sep 8, 2021

Summary

We are running into issues where changing permalink in Wordpress is not reflected on Gatsby. We need to manually run Clean Cache and Build on Gatsby cloud which is very manual and need to remember every time there is a change to permalink structure.

What I did:

Went to wp-admin/options-permalink.php and set the structure to Custom: /ourname/%postname%/

What I expected to happen:

When I push the branch to gatsby cloud, it generates pages with the URLs that follow the /ourname/slug structure

What actually happens:

Gatsby continues to generate the URLs the existing way until cache is cleared and rebuilt

Additional info:

We also see the records are being added to the table for Permalink change

Screen Shot 2021-09-08 at 12 04 58 PM

Screen Shot 2021-09-08 at 12 03 41 PM

Raw Log after changing Permalink

Screen Shot 2021-09-08 at 12 05 37 PM

When I 'Clear Cache and build ' on Gatsby Cloud, the URL's are updated correctly.
Screen Shot 2021-09-08 at 12 07 30 PM
Screen Shot 2021-09-08 at 12 07 22 PM
Screen Shot 2021-09-08 at 12 07 09 PM
Screen Shot 2021-09-08 at 12 06 51 PM

Please let me know if you need additional info to reproduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant