By flaviovs on
Lets's suppose I have downloaded the theme "footheme" to my sites/all/themes directory, and need only simples CSS changes and a few tweaks on the page.tpl.php template file. Now I have two options:
- Create a new theme under
sites/mysite.example.com/themes/mythemeand use "base theme = footheme" inmytheme.infofile. Next I'd create/copy thestyle.cssandpage.tpl.phpfrom footheme and make my adjustments. - Copy the entire "footheme" directory to
sites/mysite.example.com/themes/mytheme, effectively rename the "footheme" to "mytheme" (e.g. rename .info file, change function names in template.php etc.) and only then make my adjustments instyle.cssandpage.tpl.php.
I suppose that there's no noticeable perfomance difference in using either alternative on light traffic sites.
But my question in: for a high traffic site, is there any difference in using option 1 or 2 above regarding performance (DB load, CPU processing etc.)?
Comments
Drupal builds and caches a
Drupal builds and caches a "registry" of where it should look for various theming files/functions. When that registry is being built, there will be a significant performance penalty, but once it's cached, then everything's golden.
Some starter themes such as Zen have an option to rebuild this registry on every page load for testing purposes, effectively bypassing the cache. Once your site's ready to go live, simply turn this feature off - in Zen's case, it prints a warning message on the pages when you have this feature enabled, so it shouldn't be too hard to remember to do so.
Thanks for replying, Garrett.
Thanks for replying, Garrett. It makes sense to me.
FVS - https://dmarcpal.com - https://send2t.com