This will reduce memory footprint as Ubercart does not need its theme functions to be loaded for all page requests.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 1072264-move-theme-functions.patch | 84.56 KB | tr |
| #1 | 1072264-move-theme-functions.patch | 82.99 KB | tr |
This will reduce memory footprint as Ubercart does not need its theme functions to be loaded for all page requests.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 1072264-move-theme-functions.patch | 84.56 KB | tr |
| #1 | 1072264-move-theme-functions.patch | 82.99 KB | tr |
Comments
Comment #1
tr commentedHere's a patch. Not sure how much this actually saves ... The .theme.inc files total only about 30 kb / 1000 lines of code.
Comment #2
tr commentedProbably should also add a uc_store_update_N() to clear the theme cache ...
Comment #3
tr commentedThis version is the same as #1, except it adds an update function to rebuild the theme registry. That should take care of any transient problems people might have when upgrading.
Comment #4
tr commented@longwave, @Island Usurper: Either of you think this should be done? If not we can just close this out.
Comment #5
longwaveYou may as well commit it now you've done the work! Untested but looks okay to me.
I think this patch might help themers if they can see more easily what they can (and can't) change. Maybe we could even add a new Doxygen group for Ubercart specific theme functions?
Comment #6
tr commentedYeah, I think the biggest advantage to doing this is to make the code more modular and easier to deal with, rather than any memory savings. It will also make it simpler to replace some of the theme functions by templates, if that's something we decide to do. Certainly adding doxygen groups is something we should tackle, not just for the theme functions but for other functions as well - it would be nice to have a top-level index of Ubercart functions at api.ubercart.me instead of having everything all mixed up with Drupal functions. To do this we would have to start defining doxygen groups. The Examples module is a good model for this.
Comment #7
longwaveCommitted #3
Comment #9
venkirs commentedhow to create invoice template for using dompdf can give example coding