Closed (works as designed)
Project:
Drupal core
Version:
main
Component:
views.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 Jun 2023 at 11:43 UTC
Updated:
9 Feb 2026 at 00:21 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #2
fromme commentedComment #3
fromme commentedHere patch that add hook_cache_flush() to views module. This solves the problem.
Comment #4
fromme commentedComment #5
smustgrave commentedAs a bug will need a test case to show the problem.
Comment #6
norman.lolComment #7
norman.lolComment #8
longwaveIn the steps to reproduce it says "Check that view cache not flushed" - can you explain in more detail (or with a concrete example) how you check this?
views_invalidate_cache() repeats some of the work that is done by drupal_flush_all_caches() so it would be better to diagnose and fix the exact issue if possible.
Comment #9
fromme commented@longwave, i updated steps to reproduce
Comment #11
nicxvan commented@fromme I think you may have missed @longwave's point.
We don't need to do this,
drupal_flush_all_cachesdoes everythingviews_invalidate_cachedoes except invokehook_views_invalidate_cache.views_invalidate_cache
drupal_flush_all_caches
I don't think that drupal_flush_all_caches should invoke
views_invalidate_cachebut that is the only thing that doesn't happen.Just because that function doesn't execute when it's clicked doesn't mean that the actions don't take place.
I am going to close this as works as designed since views caches are cleared when flush all caches is clicked even if this specific function does not run.
If I missed something else, feel free to reopen this.