Jamez Posted September 6, 2006 Share Posted September 6, 2006 Just chucking something into the melting pot.... If you run a single language/single currency/single tax rate etc etc store. Would it be beneficial to combine all the info from all of the includes and requires from application_top into one file at all? Im thinking this would improve performance as you are only loading one file not a dozen Any thoughts here?? Link to comment Share on other sites More sharing options...
boxtel Posted September 7, 2006 Share Posted September 7, 2006 Just chucking something into the melting pot....If you run a single language/single currency/single tax rate etc etc store. Would it be beneficial to combine all the info from all of the includes and requires from application_top into one file at all? Im thinking this would improve performance as you are only loading one file not a dozen Any thoughts here?? well, as that file is loaded every time you should always consider removing any unnecessary processing in there but including files is not really one of them, you would not notice. Treasurer MFC Link to comment Share on other sites More sharing options...
Jamez Posted September 7, 2006 Author Share Posted September 7, 2006 well, as that file is loaded every time you should always consider removing any unnecessary processing in there but including files is not really one of them, you would not notice. hmmmmmmmm, I would have thought it to be quicker but admit im not sure. So other than the cookie checking which I notice you have commented on, is there anything else you would recommend removing from there? Link to comment Share on other sites More sharing options...
AXM Posted September 13, 2006 Share Posted September 13, 2006 You can strip down application_top.php and hardcode the language, currency and tax. Also you can skip out some includes that you might not use such as the banner code. I've tried copying all the contents of the includes into the original application_top.php and I believe it is faster on a shared server. Each server can only have so many files open so instead of opening the site page + application_top + 7 includes, having to open just the site page + application_top should help speed things up. If the include files aren't being cached by the OSC, then it would have to access the disk and seek for each file. I ♥ PHP/MYSQL/CSS Link to comment Share on other sites More sharing options...
boxtel Posted September 13, 2006 Share Posted September 13, 2006 hmmmmmmmm, I would have thought it to be quicker but admit im not sure. So other than the cookie checking which I notice you have commented on, is there anything else you would recommend removing from there? that totally depends on what you require. I dumped the banner stuff and I no longer use that specials table so I removed those. for the ajax files I have a separate application_top_light.php with only the base essentials for those small files. Treasurer MFC Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.