Home > Backend Development > PHP Tutorial > php—Smarty-cache 2 (26), phpsmarty-cache 26_PHP tutorial

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-13 09:54:32
Original
1006 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:
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
Latest Issues
smarty turns on caching garbled characters
From 1970-01-01 08:00:00
0
0
0
Why does tp use smarty template? ?
From 1970-01-01 08:00:00
0
0
0
How do you use smarty to integrate laravel5?
From 1970-01-01 08:00:00
0
0
0
Two ways to install smarty
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template