php—Smarty-cache 2 (26), phpsmarty-cache 26_PHP tutorial

WBOY
Release: 2016-07-13 09:54:32
Original
942 people have browsed it

php—Smarty-cache 2 (26), phpsmarty-cache 26

In a page, some data is cached, and some data is not cached, which is partial caching

l $smarty->assign(“var”, “value”, true)

The third parameter: indicates whether to cache

l {$var nocache=true}

Use the nocache parameter after the template variable

l {nocache}{/nocache}

Use a pair of nocache tags, everything in between is not cached

php—Smarty-cache 2 (26), phpsmarty-cache 26_PHP tutorialApplying Smarty in MVC

1. MVC

1. M: Model

2. V: View

3. C: Controller

We just need to replace our previous View component with Smarty

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/996656.htmlTechArticlephp—Smarty-cache 2 (26), phpsmarty-cache 26 In a page, some data is cached and some data No caching, just local caching l $smarty-assign(var, value, true) The third parameter...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template