Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

View Tempstore Clear

6 sites No security coverage Drupal 8–11
View on drupal.org

This module helps clean up temporary storage for Drupal views. It provides tools to remove unsaved changes for specific views or all views at once, which can resolve issues with broken edit pages.

View Tempstore Clear is a utility module designed to help manage and clear the temporary storage (tempstore) for views in Drupal. It provides both a user-friendly form and command-line tools to remove unsaved changes in views. Sometimes there are cases of broken edit view pages due to unsaved changes that could not be undone by usual ways.

Features

  • Clear tempstore for specific views: Use a simple form to clean up a specific view by entering its machine name.
  • Clear all views: Quickly reset the tempstore for all views at once using the provided form or command-line tools.
  • Integrated form: The "Clean up view tempstore" form is available at admin/structure/views/view-tempstore-cleanup and includes:
    • A field to specify the machine name of the view to clean up (View key name).
    • Two buttons:
      • Cleanup view by machine name: Clears tempstore for the entered view.
      • Cleanup all views: Clears tempstore for all views.
  • Drush and Drupal Console commands: Execute cleanup operations directly from the command line:
    • Drush command: views:tempstore:clean
    • Drupal Console command: views:tempstore:clean
    • Default behavior: If no machine name is provided, all views will be cleaned.

Use Cases

  • Fix issues caused by unsaved changes or broken relationships in a view.
  • Resolve problems when a view becomes inaccessible due to configuration errors.
  • Quickly reset tempstore data without needing direct access to view settings.

Important Note

Be cautious when using a view with the machine name all. If you attempt to clean this view, the tempstore for all views will be cleared! ¯\_(ツ)_/¯

How to Use

  • Admin Interface: Go to admin/structure/views/view-tempstore-cleanup, enter the machine name of the view, and click the appropriate button.
  • Drush: Use the following command:
        # Clear tempstore for a specific view:
        drush views:tempstore:clean view_name
    
        # Clear tempstore for all views (default):['all']
        drush views:tempstore:clean
        
  • Drupal Console: Similar to Drush, you can use:
        # Clear tempstore for a specific view:
        drupal views:tempstore:clean view_name
    
        # Clear tempstore for all views (default):['all']
        drupal views:tempstore:clean
        

Depends on

Dependencies of the latest stable release

  • views Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jan 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.0 Stable 8–11 Jan 17, 2025