Optimize tep_get_tax_rate() method 1.1 PHP script

SPONSORED LINKS

    Specification

  • Version: 1.1
  • File size: 0 KB
  • File name: download,6380
  • Last update:
  • Platform: Windows / Linux / BSD
  • Language: PHP
  • Price:GPL
  • Company: Chemo (View more)

Optimize tep_get_tax_rate() method 1.1 script description:




Publisher review:
Optimize tep_get_tax_rate() method - Each time a price is displayed on osCommerce the tax rate for that product is queried. Problem:Each time a price is displayed on osCommerce the tax rate for that product is queried. Even if the user has set to not display taxes with price the tax rate is queried.Solution:Query for each rate one time as it is needed and then store it in session cache.What this contribution does:This code change will modify the tep_get_tax_rate() method so the first time a tax rate is requested it stores it in session. On every tax rate query it is first checked to verify if it's already in sesssion and if not will query / store in cache. If it is already in session it will return that value and save the database lookup.Result:Reduction in per page query count and faster execution times. Query reduction has been demonstrated to be around 75% savings on some pages.Tested on:8 setups with differing server configurations and osC setup. This change should not affect any other contributions.Install time:As fast as you can open a file, make one change, and upload.
Optimize tep_get_tax_rate() method 1.1 is a PHP script for osCommerce Addons scripts design by Chemo. It runs on following operating system: Windows / Linux / BSD.

Operating system:
Windows / Linux / BSD

Latest script and internet news

The new Firefox 37 comes with improved HTTP / 2 and superior HMTL5 compatibility with YouTube

The new Firefox 37 comes with improved HTTP / 2 and superior HMTL5 compatibility with YouTube

The popular browser Firefox reached version 37, bringing a series of news but not as significant as other versions.

Posted on: 03 Apr 2015 11:11 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Google Chrome version 42 comes with implementation of interesting options for software developers who want to turn their websites into complex Web applications: Push notification system which is permanently active.

Posted on: 17 Mar 2015 07:57 by A. Brown

Gamers, Microsoft presents the advantages of DirectX 12 and 11.3 platforms used by new games for Windows 10

Gamers, Microsoft presents the advantages  of DirectX 12 and 11.3 platforms used by new games for Windows 10

The Windows 10 preview event brought also to the attention of gamers a demonstration of the advantages of the new DirectX 12 API by Microsoft, which announced several technologies providing integration with Xbox One game consoles.

Posted on: 27 Jan 2015 09:15 by A. Brown

Android devices now have access to Google Chrome 40

Android devices now have access to Google Chrome 40

Finally was officially released version 40 of Chrome browser for Android devices, iOS and Windows PCs, coming up with an interesting range of bug fixes and optimizations.

Posted on: 23 Jan 2015 13:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 4.0 out of 5
Based on 1 ratings. 1 user reviews.

  • Currently 4.00 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5