Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

view_tempstore_clear

3 sites No security coverage
View on drupal.org

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
        

Activity

Total releases
1
First release
Jan 2025
Latest release
1 year ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
1.0.0 Stable Jan 17, 2025