drupal-graphql / graphql-views

11 stars 18 forks source link

Caching issues with search api view #18

Open luksak opened 6 years ago

luksak commented 6 years ago

I have caching issues on graphql queries on views that displays a search api index. New content is not being displayed and changes to content are not being reflected. Are there cache tags missing?

LennardWesterveld commented 5 years ago

You can debug the tags if you enable "http.response.debug_cacheability_headers" https://www.drupal.org/docs/8/api/responses/cacheableresponseinterface

would be awesome to have some reproduce steps

silverham commented 2 years ago

Looks like you should use the 'none' cache to option (if using solr or any facets) or 'Search API (tag-based)' option. There is a bug where this is not set automatically. @see https://www.drupal.org/project/search_api/issues/3196990 @see https://www.drupal.org/project/facets/issues/2939710