<% Call RemoveAllCache() Sub RemoveAllCache() Dim cachelist,i Call InnerHtml("UpdateInfo","lang5.com提示:开始执行清理当前站点缓存:") Cachelist=split(GetallCache(),",") If UBound(cachelist)>1 Then For i=0 to UBound(cachelist)-1 DelCahe Cachelist(i) Call InnerHtml("UpdateInfo","更新 "&cachelist(i)&" 完成") Next Call InnerHtml("UpdateInfo","更新了"& UBound(cachelist)-1 &"个缓存对象
") Else Call InnerHtml("UpdateInfo","lang5.com提示:当前站点全部缓存清理完成。。") End If End Sub Function GetallCache() Dim Cacheobj For Each Cacheobj in Application.Contents GetallCache = GetallCache & Cacheobj & "," Next End Function Sub DelCahe(MyCaheName) Application.Lock Application.Contents.Remove(MyCaheName) Application.unLock End Sub Sub InnerHtml(obj,msg) Response.Write "
  • "&msg&"
  • " Response.Flush End Sub %> 醉我莲台的个人空间 - lang5.com
    个人信息
    状态: 离线
    醉我莲台
    日历
    « 2008-11  
          1
    2345678
    9101112131415
    16171819202122
    23242526272829
    30      
    回复
    收藏的论坛
    文集
    主题