Problem/Motivation

Now if you want to clean the Views cache you need to go to Administration -> Structure -> Views -> Views settings (/admin/structure/views/settings/advanced) but we can have the same functionality in the Flush all caches submenu.

Proposed resolution

Add a new menu link to Clean views cache.

Test pages

Before/After screenshots

Before:
Before the feature

After:
After the feature

Markup changes

None.

Cross browser tests

None.

None.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

adriancid created an issue. See original summary.

adriancid’s picture

Issue summary: View changes
adriancid’s picture

Issue summary: View changes
FileSize
67.29 KB
adriancid’s picture

Issue summary: View changes
adriancid’s picture

adriancid’s picture

Assigned: adriancid » Unassigned
Musa.thomas’s picture

Hi thanks for your patch but you can't add directly links to views in route and menu. Because if views is disable, it cannot work.

So you must to add your code in the .module in admin_toolbar_tools_menu_links_discovered_alter(). Also you must define Csrf token in your links.

Musa.thomas’s picture

Status: Needs review » Needs work
adriancid’s picture

Assigned: Unassigned » adriancid

Is true, I don't had this in mind, ok, I will update the patch.

If you need some help with the module I can help as maintainer.

adriancid’s picture

Assigned: adriancid » Unassigned
Status: Needs work » Needs review
FileSize
2.43 KB

Here is the update, if you see that need another change let me know.

  • adriancid committed ab42ef2 on 8.x-1.x
    Issue #2909359 by adriancid, Musa.thomas: Add a menu link to clean the...
adriancid’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.