Snippets Collections
javascript: (function() {
    window.indexedDB.databases().then(function(dbs) {
        dbs.forEach(db => {
            window.indexedDB.deleteDatabase(db.name);
        });
    }).then(function() {
        location.reload();
    });
})();
$GLOBALS['TYPO3_CONF_VARS'] = array_replace_recursive(
    $GLOBALS['TYPO3_CONF_VARS'],
    [
            'SYS' => [
                'caching' => [
                    'cacheConfigurations' => [
                        'pages' => [
                            'backend' => 'TYPO3\\CMS\\Core\\Cache\\Backend\\NullBackend',
                            'frontend' => 'TYPO3\\CMS\\Core\\Cache\\Frontend\\NullFrontend',
                        ],
                        'rootline' => [
                            'backend' => 'TYPO3\\CMS\\Core\\Cache\\Backend\\NullBackend',
                            'frontend' => 'TYPO3\\CMS\\Core\\Cache\\Frontend\\NullFrontend',
                        ],
                        'l10n' => [
                            'backend' => 'TYPO3\\CMS\\Core\\Cache\\Backend\\NullBackend',
                            'frontend' => 'TYPO3\\CMS\\Core\\Cache\\Frontend\\NullFrontend',
                        ],
                    ],
                ],
            ],
        ]
);
// Invalide a Node cache.
\Drupal::service('cache_tags.invalidator')->invalidateTags(['node:5']);
// Invalidate a custom entity cache.
\Drupal::service('cache_tags.invalidator')->invalidateTags(['custom_entity:5']);
// Invalidate a custom cache tag.
\Drupal::service('cache_tags.invalidator')->invalidateTags(['thing:identifier']);
star

Sun Jan 12 2025 01:26:52 GMT+0000 (Coordinated Universal Time) https://github.com/RebbePod/salesforcetools/blob/main/Tools/Bookmarklets/Hard%20Refresh.js

#salesforce #cache
star

Tue Oct 22 2024 11:48:25 GMT+0000 (Coordinated Universal Time)

#php #cache
star

Thu May 09 2024 05:25:25 GMT+0000 (Coordinated Universal Time) https://drupal.stackexchange.com/questions/255497/how-do-i-invalidate-the-cache-of-an-entity

#invalidate #node #cache

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension