关于缓存类的使用,及部分技巧
类别: ASP教程
<!--#include file="../../inc/asp/all.asp"-->
<!--#include file="../../inc/asp/conn_2.asp"-->
<%
call jz_page_id()
'Response.Write(jz_w(0))
'定义缓存名称
jz.Name="show_"&"_"&jz_w(1)&"_"&jz_w(2)&"_"&jz_w(3)&"_"&jz_w(0)
If jz.ObjIsEmpty() Then
'缓存当前页面时间
'jz.Reloadtime=14400*60
jz.Reloadtime=10*24*60*60
'缓存取值.start
jz.t_h=jz.fso_000("../../Templates/currency/show.htm")
call jz.c_r_s(1,true,true)
call jz_txt_01(jz_w(0))
jz.cache=jz_text_(0)
jz.replace_000("{$title}")
jz.cache=jz_text_(1)
jz.replace_000("$keywords$")
jz.cache=jz_text_(0)
jz.replace_000("$txet_title$")
jz.cache=jz_text_(2)
jz.replace_000("$txet_c$")
jz.cache=jz_text_(3)
jz.replace_000("$txet_bottom$")
jz.cache=jz.web_name
jz.replace_000("$web_name$")
jz.cache=jz_top_a()
jz.replace_000("$top_a$")
jz.cache=jz_top_nav_00(1)
jz.replace_000("$nav_00$")
jz.cache=jz_top_nav_01(1)
'Response.Write(jz.cache)
jz.replace_000("$NAV_01$")
call jz_top_nav_02(1)
jz.cache=jz_top_menu(0)
jz.replace_000("$top_menu$")
jz.cache=jz_ul_00(1,6,11,true,false,false,false,2,1,jz_w(1),jz_w(2),jz_w(3))
jz.replace_000("$hot$")
jz.cache=jz_ul_00(1,8,11,true,true,false,false,0,1,jz_w(1),jz_w(2),jz_w(3))
jz.replace_000("$cool$")
jz.cache=jz_ul_00(1,16,11,true,false,false,false,0,1,jz_w(1),jz_w(2),jz_w(3))
jz.replace_000("$new$")
jz.cache=jz_txt_02(">",jz_w(0),1,1,1,false,false,false,jz_w(1),jz_w(2),jz_w(3))
jz.replace_000("{$jz_sypuz}")
jz.cache=jz_txt_02("<",jz_w(0),1,1,0,false,false,false,jz_w(1),jz_w(2),jz_w(3))
jz.replace_000("{$jz_xypuz}")
jz.value=jz.t_h
else
call jz_attack_00(jz_w(0))
end if
jz.t_h=jz.Cache_Data(0)
Response.Write(jz.t_h)
jz_time(1)=timer()
response.write "页面执行时间:"&FormatNumber((jz_time(1)-jz_time(0))*1000,3)&"毫秒"
'Response.Write(jz_w(0))
%>
<!--#include file="../../inc/asp/conn_2.asp"-->
<%
call jz_page_id()
'Response.Write(jz_w(0))
'定义缓存名称
jz.Name="show_"&"_"&jz_w(1)&"_"&jz_w(2)&"_"&jz_w(3)&"_"&jz_w(0)
If jz.ObjIsEmpty() Then
'缓存当前页面时间
'jz.Reloadtime=14400*60
jz.Reloadtime=10*24*60*60
'缓存取值.start
jz.t_h=jz.fso_000("../../Templates/currency/show.htm")
call jz.c_r_s(1,true,true)
call jz_txt_01(jz_w(0))
jz.cache=jz_text_(0)
jz.replace_000("{$title}")
jz.cache=jz_text_(1)
jz.replace_000("$keywords$")
jz.cache=jz_text_(0)
jz.replace_000("$txet_title$")
jz.cache=jz_text_(2)
jz.replace_000("$txet_c$")
jz.cache=jz_text_(3)
jz.replace_000("$txet_bottom$")
jz.cache=jz.web_name
jz.replace_000("$web_name$")
jz.cache=jz_top_a()
jz.replace_000("$top_a$")
jz.cache=jz_top_nav_00(1)
jz.replace_000("$nav_00$")
jz.cache=jz_top_nav_01(1)
'Response.Write(jz.cache)
jz.replace_000("$NAV_01$")
call jz_top_nav_02(1)
jz.cache=jz_top_menu(0)
jz.replace_000("$top_menu$")
jz.cache=jz_ul_00(1,6,11,true,false,false,false,2,1,jz_w(1),jz_w(2),jz_w(3))
jz.replace_000("$hot$")
jz.cache=jz_ul_00(1,8,11,true,true,false,false,0,1,jz_w(1),jz_w(2),jz_w(3))
jz.replace_000("$cool$")
jz.cache=jz_ul_00(1,16,11,true,false,false,false,0,1,jz_w(1),jz_w(2),jz_w(3))
jz.replace_000("$new$")
jz.cache=jz_txt_02(">",jz_w(0),1,1,1,false,false,false,jz_w(1),jz_w(2),jz_w(3))
jz.replace_000("{$jz_sypuz}")
jz.cache=jz_txt_02("<",jz_w(0),1,1,0,false,false,false,jz_w(1),jz_w(2),jz_w(3))
jz.replace_000("{$jz_xypuz}")
jz.value=jz.t_h
else
call jz_attack_00(jz_w(0))
end if
jz.t_h=jz.Cache_Data(0)
Response.Write(jz.t_h)
jz_time(1)=timer()
response.write "页面执行时间:"&FormatNumber((jz_time(1)-jz_time(0))*1000,3)&"毫秒"
'Response.Write(jz_w(0))
%>
-= 资 源 教 程 =-
文 章 搜 索