tags:

views:

39

answers:

3

Hi everybody. I'm developing my website using Php and Smarty. Now , i'd like to caching the bytecode of the php script using APC, but i'm worry that APC will cache also the complied smarty's templates, loosing the possible dynamic content. Is it possible?

Tanks

A: 

Yes, it is. I used to do just that. Always test on your dev machine before deployment.

Collector
+1  A: 

I have been using APC for over a year now and without problems on four different servers and more than 30 different sites. All these sites are Smarty ones, using dynamic content literally everywhere. At the moment I am using in a pretty heavily used customer site with no problems. Not once.

APC caches the compiled templates and re-caches them when/if they are altered (compiled by the Smarty compiler). The dynamic content will work exactly as previously, it will only be a bit quicker, of course.

So go ahead and use it.

karvonen
A: 

Tanks very very much.