XSLCache in PECL

XSLCache extension for PHP,originally developed by NYTimes started its second life in PECL’s repository and I am proud to announce first PECL-release.

The XSL Cache extension is a modification of PHP’s standard XSL extension that caches the parsed XSL stylesheet representation between sessions for 2.5x boost in performance for sites that repeatedly apply the same transform. API-wise it is compatible with usual XSL extension with two small exceptions:

  1. instead of XSLTProcessor class you should use XSLTCache class.
  2. importStyleshet method has another “signature”:void importStylesheet(string $path,bool $cachesheet=true);

Installation,from now on,should be as simple as “pecl install xslcache

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • DZone
  • FriendFeed
  • Reddit
  • Tumblr
  • Twitter
Liked this post? Follow me on twitter:@jimi_dini.

  • http://www.php-zine.net/ Edir

    excellent idea!
    Why not incorporate it in XSL extension of PHP?

  • http://blog.milkfarmsoft.com/ indeyets

    That is a long-term goal. For now,xslcache just needed a formal release,as version from NYTimes didn't include several important patches

  • Gregory

    I'm way late on this one,but thank you so much for this. I found and was disappointed to see the NY Times version was released and untouched for three years. Glad to see it's seen some work. What exactly were the changes made from 0.6 to 0.7 and who if anybody is working on the next release?

A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna,tincidunt vitae molestie nec,molestie at mi. Nulla nulla lorem,suscipit in posuere in,interdum non magna.