Forum Moderators: coopster

Message Too Old, No Replies

PHP script caching vs. output caching

can you use both, or which is better in which scenario?

         

jamie

6:27 am on Jun 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



i am a bit confused as to whether you can use script caching AND output caching at the same time?

i have just downloaded the PHPA and it looks fabulous - i can't wait to get it installed... but..

i have also just been investigating the PEAR Cache_Lite class which also looks very easy to implement... so...

which one to use? or can i use both on the same site?

cheers

daisho

1:06 pm on Jun 7, 2003 (gmt 0)

10+ Year Member



Both. PHPA compiles your scripts source code and keeps it in memory to be able to start execution quicker by being able to bypass the parse and compile stage.

This has nothing to do with the output of your script. Still use some type of output caching in PHP.

daisho.

jamie

1:58 pm on Jun 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



daisho,

thank you very much (again ;-)

that's great news.