To duplicate:
1) Open the current theme's .info file
2) Modify the stylesheets[all][] line and change the style.css file read a non-existent file (nostyle.css)
3) Empty the cache on the Performance page
4) Notice the theme does not change
5) Click around through various pages on the site. Some pages will finally cause the new .info file to load (apparently triggered by something in the menu system forcing a cache reload) and the site will go themeless.
This patch places a call system_theme_data in the drupal_flush_all_caches() function to make force the data in the system table which holds the .info file to reload immediately.
Comment | File | Size | Author |
---|---|---|---|
theme_reload.patch | 346 bytes | Steve Dondley | |
Comments
Comment #1
dvessel CreditAttribution: dvessel commentedEmptying the cache actually shows the changes on the next page load. This is definitely confusing especially with the devel theming modules clear cache link which requires more than one page refreshes.
Comment #2
Dries CreditAttribution: Dries commentedI've committed this to CVS HEAD. Should probably also go in DRUPAL-6.
Comment #3
webchickJust confirmed this bug again in 6. Changing version to hopefully get some eyes on it.
Comment #4
JohnAlbinI confirm that this problem still exists in DRUPAL-6.
I also tested the patch and it works great, especially with devel's “Empty cache” link. Would mark it RTBC if it wasn’t already.
Nice fix, Steve!
Comment #5
forngren CreditAttribution: forngren commentedTested with 6.2 and confirmed working.
Comment #6
Dries CreditAttribution: Dries commentedCommitted the patch to DRUPAL-6 as well.
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.