Thank you Col I will go into Zend_Cache as you suggested. One more thing- does Zend_Cache saces data into file or use a server memory? Colin Guthrie-6 wrote: > > vladimirn wrote: >> Hi all, >> i was wondering whats the best approach to do next. >> I have an xml file delivered from service of my partner. On my web server >> (windows) i have xslt files used for xml transformation. >> Those files are getting bigger, so i have request to cash them and use >> cashed. I was thinkging about memcahce php(dunno if it will work on >> windows >> server and tbh never used it before). >> So i am sure that there must be several ways to cash xslt files. I google >> for this, but i am not sure that i found any solution i can use. >> What would be the best approach to solve this? I just would like to see >> more >> ideas :) >> LOL sure, if someone already have a good working solution i would >> appreciate >> any link or code :0) > > Well you have to define what you actually want to do do here as it's a > little unclear from your description. > > Do you want to cache the XSLT files themselves or do you want to cache > the result of *applying* the XSLT files to the input XML? > > If you just want to cache the XSLT itself (e.g. loaded into a DOM > document object) then there is little point as you would have to > serialize and deserialize the dom document objects before storing them > (via extending the class and adding __sleep() and __wakeup() methods) as > I am pretty sure Dom Document doesn't do this automatically (last I > checked which was admittedly a while ago!). > > This only saves a small amount of overhead. > > If you are looking for a good set of classes that can handle generic > caching, I'd strongly recommend using the Zend_Cache system. > http://www.framework.zend.com/manual/en/zend.cache.html > > Zend cache will support disk-based caching and memcache or APC too all > via the same API. > > Col > > > > > > -- > > Colin Guthrie > gmane(at)colin.guthr.ie > http://colin.guthr.ie/ > > Day Job: > Tribalogic Limited [http://www.tribalogic.net/] > Open Source: > Mandriva Linux Contributor [http://www.mandriva.com/] > PulseAudio Hacker [http://www.pulseaudio.org/] > Trac Hacker [http://trac.edgewall.org/] > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- View this message in context: http://www.nabble.com/PHP-XSLT-caching-tp20173225p20174548.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php