asp磁盘缓存技术使用的代码(5)


                        Set File=FSO.GetFile(CFolder&CFile)        '定义CatchFile文件对象
                        LastCatch=CDate(File.DateLastModified)
                        if DateDiff("n",LastCatch,Now())>Overdue then
                        '如果超过了Catch时间
                                IsBuildCatch=true
                        else
                                IsBuildCatch=false
                        end if
                        Set File=Nothing
                else
                        IsBuildCatch=true
                End if

                If IsBuildCatch then
                        GetCatchData=BuildCatch(Rev)        '如果需要创建Catch,则创建Catch文件,同时设置Catch的数据
                else
                        GetCatchData=ReadCatch(Rev)        '如果不需要创建Catch,则直接读取Catch数据
                End if

                Set FSO=nothing

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/3182.html