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.
The filter_cron() is expiring all the cache_filter items in the cache, this is also being don't with all cache tables including the cache_filter in the system module.
see http://api.drupalecommerce.org/api/function/system_cron/7 and http://api.drupalecommerce.org/api/function/filter_cron/7
Comment | File | Size | Author |
---|---|---|---|
#5 | 951726-D6.patch | 1.44 KB | swentel |
#1 | 951726.patch | 1015 bytes | swentel |
Comments
Comment #1
swentel CreditAttribution: swentel commentedTrue, that one can actually go.
Comment #2
gordon CreditAttribution: gordon commentedThis could also be backported to Drupal 6.x as well sometime.
Comment #3
moshe weitzman CreditAttribution: moshe weitzman commentedComment #4
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Moving to D6.
Comment #5
swentel CreditAttribution: swentel commentedD6 patch
Comment #6
andypostThere's reason to cleanup this on cron within system and filter module both.
Comment #7
Gábor HojtsyI'm a bit hesitant on this actually. Does it mean any measurable performance improvement? (Notice we are changing the API by removing a function that was not really intended to be invoked directly but somebody might have done so).
Comment #9
andypostI think this function could be safely removed because it's just a code cleanup.
I think if someone use a core hook implementation for any reasons - this eay is wrong.
The performance improvement could be visible only on highload systems because of time-frame between two cleanups (system & filter) module). Anyway this is a -1 within "delete query" so hook_cron could run a bit faster
Comment #10
Gábor HojtsyLooking for more feedback.
Comment #11
Gábor HojtsyMaybe we will get some more feedback this way?
Comment #12
gordon CreditAttribution: gordon commentedThis is really just to a clean up and to remove a duplicate process, as clearing the filter cache twice is not going to clear out the filter cache anymore than it 1 clear cache process is going to do.
It is not a performance improvement but getting rid of some code rot.
Gordon.