Issue Feature Rejected

#101509Hotkey to clear caches

Johannes Przymusinski [jop-software.de] 07/31/23, 14:22 updated 03/25/25, 22:12

Description

Based on ##101507 I’d like to have / add shortcuts for clearing the cache.

I propose:

  • ALT + C for cacheCmd=pages
  • ALT + X for cacheCmd=all

Those keys are more or less arbitrary and follow loosely what Shopware 6 uses for keybindings in their Administration.
I’m open to other proposals, as my initial suggestions, I picked what I’m already familiar with.

I’d like to work on that and provide a corresponding patch for this.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 4

  1. Andreas Kienast commented <span data-processor="relativetime" data-value="2023-07-31T14:34:36+00:00" > 07/31/23, 14:34 </span>

    In general I like the proposal, but I’m not sure about the keys. An extension may extend this with additional items and then won’t get hotkeys by default. Since the “Clear Cache” menu is already usable via keyboard, it would be fine for me to use Alt+C (or alike) to open the menu only.

    Then, the currently existing limitations are in effect which would make it mandatory to register the same hotkey multiple times – in the scaffold and in the iframe.

  2. Johannes Przymusinski [jop-software.de] commented <span data-processor="relativetime" data-value="2023-07-31T15:55:21+00:00" > 07/31/23, 15:55 </span>

    Sounds like a good idea to “just” open the menu here to be more flexible.

    I’ll implement it with ALT+C for now, when there are any other (maybe better) suggestions, please let me know.

  3. Georg Ringer commented and changed status New Rejected <span data-processor="relativetime" data-value="2025-03-25T22:12:56+00:00" > 03/25/25, 22:12 </span>

    thanks for creating the issue!

    I am closing the issue as the cache is not something which should be cleared just for fun, especially on larger websites. See e.g. https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/PageTsconfig/TceMain.html#clearcachecmd how it can be configured to clear caches on demand.

    Additionally the cache time can be set on a page level.

    However, as there is the hotkey API available, feel free to create a package which provides the functionality to the community!