Class HtmlCache

Description

静态缓存类

支持静态缓存规则定义

Located in /Think/Util/HtmlCache.class.php (line 25)

Base
   |
   --HtmlCache
Method Summary
static boolen checkHTMLCache ([string $cacheFile = ''], [integer $cacheTime = ''])
static void readHTMLCache ()
static string writeHTMLCache ( &$content, string $content)
Methods
static checkHTMLCache (line 147)

检查静态HTML文件是否有效

如果无效需要重新更新

  • access: public
static boolen checkHTMLCache ([string $cacheFile = ''], [integer $cacheTime = ''])
  • string $cacheFile: 静态文件名
  • integer $cacheTime: 缓存有效期
static readHTMLCache (line 41)

读取静态缓存

  • throws: ThinkExecption
static void readHTMLCache ()
static writeHTMLCache (line 116)

写入静态缓存

  • throws: ThinkExecption
  • access: public
static string writeHTMLCache ( &$content, string $content)
  • string $content: 页面内容
  • &$content

Documentation generated on Thu, 27 Mar 2008 08:20:44 +0000 by 塞北的雪