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

Trigger_Refetch_All not triggering a rebuild of the entire site #190

Open
psharma-ii opened this issue Aug 27, 2021 · 0 comments
Open

Trigger_Refetch_All not triggering a rebuild of the entire site #190

psharma-ii opened this issue Aug 27, 2021 · 0 comments

Comments

@psharma-ii
Copy link

We are running into issue where firing Trigger_Refetch_All is not rebuilding the entire site. According to the PR #74, looks like its supposed work, but its not. I had to manually fire a clean cache and rebuild on gatsby cloud to fetch_all. Here's a code example of how we are using it

$action_monitor = new \WPGatsby\ActionMonitor\ActionMonitor();
		$monitor = new \WPGatsby\ActionMonitor\Monitors\ActionMonitor($action_monitor);
		
		$monitor->trigger_refetch_all(
			[
				'title' => __( 'Global Settings Changed', 'WPGatsby' ),
			]
		); 

which is creating records in the db with the correct time stamp



{"action_type":"REFETCH_ALL","title":"Global Settings Changed","node_id":"refetch_all","relay_id":"refetch_all","graphql_single_name":"refetch_all","graphql_plural_name":"refetch_all","status":"refetch_all"}

@psharma-ii psharma-ii changed the title Trigger_Refetch_All not working Trigger_Refetch_All not triggering a rebuild of the entire site Aug 27, 2021
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