Mercurial > SimpleWebPresenter
comparison sitemap.php @ 69:dd4ddedca4c5
Add convenience header ScriptIncludeCache
Split CacheTimeCheck and FileCacheSet
| author | Tom Fredrik "BFG" Klaussen <bfg@blenning.no> |
|---|---|
| date | Thu, 11 Oct 2012 23:32:14 +0200 |
| parents | 37dee99c1f8c |
| children | 947d53f95ccd |
comparison
equal
deleted
inserted
replaced
| 68:4dfa3f6a2dc1 | 69:dd4ddedca4c5 |
|---|---|
| 12 xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" | 12 xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" |
| 13 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | 13 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 14 xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 | 14 xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 |
| 15 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"> | 15 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"> |
| 16 '; | 16 '; |
| 17 include_once 'CacheTimeCheck.inc'; | 17 include_once 'ScriptIncludeCache.inc'; |
| 18 | 18 |
| 19 /// @cond | 19 /// @cond |
| 20 $baseDir = dirname(__FILE__); | 20 $baseDir = dirname(__FILE__); |
| 21 $cache = CacheTimeCheck::instance(__FILE__); | 21 $cache = ScriptIncludeCache::instance(__FILE__); |
| 22 $cache->includeOnce('common-functions.inc', $baseDir); | 22 $cache->includeOnce('common-functions.inc', $baseDir); |
| 23 | |
| 24 | |
| 25 $cache = CacheTimeCheck::instance(__FILE__); | |
| 26 $cache->includeOnce('Options.inc', dirname(__FILE__)); | 23 $cache->includeOnce('Options.inc', dirname(__FILE__)); |
| 27 /// @endcond | 24 /// @endcond |
| 28 | 25 |
| 29 $master = new DOMDocument(); | 26 $master = new DOMDocument(); |
| 30 $master->load("master.xml"); | 27 $master->load("master.xml"); |
