opencart/opencart — pull request #763 by pine3ree (2013-07-11 00:31:08+00:00)
Title: tax.php : cache defined tax rates 

save quite a few queries

getRates() method is called for every product with tax and the same database query may be called over and over again

caching the query result for a particular parameter combination avoids subsequent calls.