Centurion Centurion - 1 year ago 106
PHP Question

Smarty: what is the difference between templates_c and cache folder?

There are two folders -

that are used when using Smarty with caching.

I have enabled caching and after that, both contain some sort of cache (IMHO same files) but still with some php, not pure HTML. However, just curious what is the difference in those folders? Where Smarty looks first when trying to locate relative cache file?

Answer Source

templates_c used for compiled templates, but without the actual content, that can be dynamically inserted into them. On the other hand the cache folder is used for what you know as cached pages - the complete pages that served to user instead of re-compiling them each time.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download