Problem/Motivation
After adding an icon to a menu item, icon_css is regenerated, but the css cache isn't flushed
Proposed resolution
at the end of function menu_icons_form_submit add a call to drupal_clear_css_cache() after menu_icons_css_generate() has been called
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | menu_icons-flush_css_cache-1293244-5.patch | 374 bytes | klaasvw |
| #4 | menu_icons-flush_css_cache-1293244-4.patch | 478 bytes | rooby |
| add_clear_css.patch | 131 bytes | MaikelP |
Comments
Comment #1
nicholas.alipaz commented+1 for this!
Comment #2
sjugge commented+1 for this patch.
Comment #3
fonant commentedPatch does seem to help :)
Comment #4
rooby commentedThat patch is not well rolled. Without reading the description that goes with it you have no idea where the line is being added.
Here is a reroll for drupal 7. It should be fixed there first anyways.
Functionality wise it is the same, just with an added comment.
It fixes the problem for me.
Comment #5
klaasvw commentedWhat about clearing the CSS cache any time the menu icons CSS is rebuilt? The solution from #4 won't work with menu icons added through the node form.
Comment #6
dscl commented#5 Works like a charm. :)
Thanks a lot!