Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Added redirect to current page after clear cache.
Was tired or navigating back to a page I was working on after I clear cache.
Now you should able to be back to the page you were working on when you clicked "clear cache'
Version 7.x-2.5 had a dependency on Views having been installed. It don't require Views for anything else, but if you tried to run it on a clean Drupal 7 site without first installing Views, it would crash with the following PDOException:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'MYTHEME.cache_views' doesn't exist: TRUNCATE {cache_views} ; Array ( ) in clear_cache_truncate() (line 37 of /www/MYSITE/htdocs/sites/all/modules/clear_cache/clear_cache.clear.inc).
We have corrected this.
------ ---- WHATS NEW on 7.x-2.4 --------------
=> cleaned some code for faster load
=> the views module is no longer required to install the module.
=> added a drush command with the alias 'batman'.
To clear cache after installing the clear_cache module, use "drush batman" to clear cache including views cache
------ ---- WHATS NEW on 7.x-2.4 --------------
=> cleaned some code for faster load
=> the views module is no longer required to install the module.
=> added a drush command with the alias 'batman'.
To clear cache after installing the clear_cache module, use "drush batman" to clear cache including views cache
We had an experience where we constantly needed to clear site cache for over 400 sites at the same time.
Since this is a healthy list of cache to clear, we ran into issues where Drupal would complain about deadlocks on tables.
We traced this to the delete function on cache, which basically used delete per row. This was sucking up most of our resources.
And we love our resources, so I decided to massage the drupal_flush_all_caches function to ALWAYS use truncate instead of using delete.
Clear Cache provides as easy way to clear all your drupal cache.
This is the initial release. Will be adding more functionality in upcoming versions. Working on Drupal 8 version....