Skip to content
Snippets Groups Projects
Commit a934fa75 authored by Robert Kasza's avatar Robert Kasza Committed by Robert Kasza
Browse files

Issue #3118269 by kaszarobert, pianomansam: Google Analytics Counter field...

Issue #3118269 by kaszarobert, pianomansam: Google Analytics Counter field doesn't show updated value in a view after cron runs
parent 22e21801
No related branches found
No related tags found
No related merge requests found
......@@ -473,6 +473,10 @@ class GoogleAnalyticsCounterAppManager implements GoogleAnalyticsCounterAppManag
'field_google_analytics_counter_value' => $sum_pageviews,
])
->execute();
// Possible fix for a use case where field doesn't show updated value
// in views after cron runs.
\Drupal::cache('entity')->invalidate('values:node:' . $nid);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment