Instance: implements static cache for dynamic web pages. Example: implement static cache source for dynamic web pages dynamic web page title instance: implement static cache for dynamic web pages titleh3 instance: implement static cache for dynamic web pages h3pchtmlfore instance: implement static cache for dynamic web pages
SOURCE Dynamic webpage
- Instance: static caching of dynamic web pages
Instance: static caching of dynamic web pages
-
-
- @ {Int :@{ for: getSuffix} + 1 }-
-
- @ {Int :@{ for: getSuffix} + 1 }-
-
-
-
-
-
(Example File: _ samples/file_page.html)
Read cached static file information
- WEB-INF/cache/page_test.html
Determine whether a static file exists
-
- page
- cache
-
If yes, the cache is called. If no, the page is called.
- page
- cache
You can call label cache to read cached files.
-
- WEB-INF/cache/page_test.html
-
Callable labelsPage
-
Introduce the dynamic web file @ {sys: curpath‑file_page.html and save it as a WEB-INF/cache/page_test.html file
Show cache content
@ {File: page}
Complete Code
-
-
- WEB-INF/cache/page_test.html
-
- page
- cache
-
-
-
-
- WEB-INF/cache/page_test.html
- @{file:page}
-
Effect
(Example File: _ samples/file_cache.html)
Try it now!
Dynamic Source dynamic web page title instance: static cache for dynamic web pages/title h3 instance: static cache for dynamic web pages/h3 p chtml for e...