Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cleaning out application_top.php for performance?


Jamez

Recommended Posts

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

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

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...