Posted by Steve Dondley on March 28, 2008 at 10:46pm
Jump to:
| Project: | Drupal core |
| Version: | 6.x-dev |
| Component: | theme system |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Steve Dondley |
| Status: | closed (fixed) |
Issue Summary
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.
| Attachment | Size | Status | Test result | Operations |
|---|---|---|---|---|
| theme_reload.patch | 346 bytes | Ignored: Check issue status. | None | None |
Comments
#1
Emptying 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.
#2
I've committed this to CVS HEAD. Should probably also go in DRUPAL-6.
#3
Just confirmed this bug again in 6. Changing version to hopefully get some eyes on it.
#4
I 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!
#5
Tested with 6.2 and confirmed working.
#6
Committed the patch to DRUPAL-6 as well.
#7
Automatically closed -- issue fixed for two weeks with no activity.