WC_REST_Data_Countries_Controller::get_files_relevant_to_response_cachingprotectedWC 1.0

Get the files relevant to response caching.

Method of the class: WC_REST_Data_Countries_Controller{}

No Hooks.

Returns

Array. Array of file paths to track for cache invalidation.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_files_relevant_to_response_caching( $request, ?string $endpoint_id ): array;
$request(WP_REST_Request) (required)
.
?string $endpoint_id
.
Default: null

WC_REST_Data_Countries_Controller::get_files_relevant_to_response_caching() code WC 10.8.1

protected function get_files_relevant_to_response_caching( WP_REST_Request $request, ?string $endpoint_id = null ): array { // phpcs:ignore Squiz.Commenting.FunctionComment.IncorrectTypeHint
	return array( 'i18n/countries.php', 'i18n/states.php' );
}