Smarty Template Efficiency Issues!
Recently using Smarty template, found that will be used to file_exists, this will not increase the burden of Io, this is not inevitable?
------Solution--------------------
No impact, the server is more robust than you think.
Since he needs to translate your template file into a PHP program, use the Include in
So of course to check whether the file exists, not only this, he will also check whether your template file has been changed, if changed, he will be re-translated into PHP program
If you enable caching, he also checks to see if the cache file exists and is too old. To jiuding whether to use the cache file directly or to regenerate the cache file
------Solution--------------------
Network-related IO, such as Echo without buffering
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service