 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Dhiraj Patra's Blog: Caching PHP Programs with PEAR
by Chris Cornutt August 07, 2008 @ 12:58:09
In a recent post to his blog Dhiraj Patra looks at the caching functionality that PEAR has to offer via the PEAR Cache package.
Caching is currently a hot topic in the PHP world. Because PHP produces dynamic web pages, scripts must be run and results must be calculated each time a web page is requested, regardless if the results are the same each time. In addition, PHP compiles the script every time it is requested. [...] PEAR's Cache package offers a framework for the caching of dynamic content, database queries, and PHP function calls.
He talks a bit about what kind of methods are included with the package and shows examples of how it works for function call caching, caching the output from the script execution and how to implement your own custom caching extension of the main code to make it even more flexible.
voice your opinion now!
pear cache tutorial function call output custom handler
Doug Brown's Blog: Zend_Cache is Saving me Money!
by Chris Cornutt July 04, 2008 @ 07:55:01
Doug Brown has posted a new entry to his blog about how the Zend_Cache component of the Zend Framework has saved him some money.
He and his site were taken offline by his own hosting company because of one little detail - the limit on usage for the shared server was 3% and his site was using 30%. Going through his logs, he found the culprit - a "too many connections" message from MySQL due to the number of requests.
I'll admit, I was in a huge hurry to get this project done, so I wasn't thinking about the long term effects. Needless to say, I wasn't caching my MySQL query results. I know, tisk tisk.
He added a new private method to his class (using Zend_Cache to store the date) and dropped the call into his controller to pulled the cached info whenever it needed it.
voice your opinion now!
zendcache zendframework hosting shared mysql connection usage cache
Brian Moon's Blog: MemProxy 0.1
by Chris Cornutt June 12, 2008 @ 09:31:45
Brian Moon has announced the release of the latest version of his memproxy tool that uses memcache to create a "server" to save the proxy information.
I put server in quotes because it is really just a PHP script that handles the caching and talking to the application servers. Apache and other HTTP servers already do a good job talking HTTP to a vast myriad of clients. I did not see any reason to reinvent the wheel.
Features of this new version include a TTL for the cached data, minimal dependencies for the application to use and a small code base consisting of two files. It also handles HTTP 1.1 requests, is transparent and applows pages to dynamically be specifically added and removed from the cache.
You can download this latest version from the project's page on the Google Code website.
voice your opinion now!
memproxy release cache memcache proxy server download
C7Y: Optimizing with APC
by Chris Cornutt May 28, 2008 @ 12:58:07
Brian Shire has posted a new tutorial talking about some of the benefits of caching the functionality of your website (with things like APC, not file or database caching):
Opcode caches save energy, expenses, improve overall user experience on web sites, and it's often one of the simplest optimizations to implement. This article will explain the basics of installing, configuring, and tuning an opcode cache for PHP, the Alternative PHP Cache (APC).
The article focuses on how the APC works and how to get it up and working on your installation (as pulled from the pecl repositories). They look at some of the functions the extension's API includes (like ap_cache_info or ap_store for manual caching) as well as some more advanced topics like locking performance, working with TTL, cache priming and filtering.
voice your opinion now!
tutorial optimize apc alternative cache pecl extension
New Earth Online: Caching PHP pages
by Chris Cornutt April 21, 2008 @ 09:31:40
The New Earth Online has a quick look at one easy method for speeding up your site in a few different ways - caching pages and information with things like Cache_Lite and APC.
As your site traffic grows it takes longer and longer to generate a dynamic page from sending multiple queries to a database. One possible solution to limit queries is to cache the result of each query that is needed, or to have a complete full page cache for your site.
They look at the two ways I mentioned - the Cache_Lite PEAR package and the APC extension (that will soon be included by default in the stable PHP releases). Bits of code are provided for each showing how to get them set up and get them working inside of your application.
voice your opinion now!
cache page apc pear cachelite tutorial install
Mike Willbanks' Blog: Performance Tuning Overview
by Chris Cornutt January 31, 2008 @ 11:11:00
Mike Willbanks has posted an introduction he's written up giving some helpful hints at tuning your servers and PHP applications for performance.
The focus of this post is not to show performance related items to specific PHP frameworks since many bottlenecks actually apply before running the framework itself that should certainly be solved up front. Therefore in this posting I attempt to look at simple items that can be deployed in order to produce finer tuned systems.
He talks about a few different aspects:
- PHP Performance Tuning (opcode caching, apc file priming, includes, loops, etc)
- RDBMS Performance Tuning (indexes in queries, query caching, archiving)
- HTTP Performance Tuning (content compression, css sprites, limit modules, etc)
voice your opinion now!
performance tuning http rdbms server cache compress
|
Community Events
Don't see your event here? Let us know!
|