The Cleaner< module allows the admin to set a schedule for clearing caches, watchdog, and old sessions.
There are functions in Drupal which will cause "expired" entries in some cache tables to be deleted. This is vastly improved in Drupal 6. "Minimum_cache_lifetime" is a partial solution, but still not totally complete.
There are still times and/or cache tables that don't get cleared in any of those scenarios. Many sites will not be impacted by this, but a few will (just search on drupal.org and you will see many posts from people having problems).
Before you dismiss this module as "silly," which I did for a while after writing it, consider an actual experience. I maintain a site that is based on Panels, Nodequeue, and Views. In this set up, the cache entries can get very large after some time. MySql has a parameter ("max_allowed_packet") that limits how much data can be read in. If this limit is exceeded, MySql does not throw an error, rather it just provides what data it could read. With no error indication, the site just goes merrily on its way with what was given to it. In this case both the panel definition and nodequeue contents went haywire. Clearing the cache resolved the issue for the moment.
Then I remembered this module that I had written and dismissed as "silly" after getting it working. Now, I will admit that the hooks provided here probably are "silly" but I had included them originally, so they are still there. I don't know why anyone would use them, but if you want, knock yourself out.
Standard module installation applies.
Uninstall function:
The settings may be found at Administer » Site configuration » Cleaner.
There are no new permissions for this module. 'Administer site configuration' is required to run it.
There is one menu entry for "Cleamer;" it is for the settings page
There are no blocks for this module.
Not applicable.
Recent comments
12 years 31 weeks ago
12 years 31 weeks ago
12 years 42 weeks ago
12 years 47 weeks ago
13 years 18 weeks ago
13 years 28 weeks ago
13 years 35 weeks ago
13 years 35 weeks ago
13 years 41 weeks ago
13 years 44 weeks ago