- Timestamp:
- Jul 8, 2012, 2:13:09 AM (12 years ago)
- Location:
- lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/cache.php
r275 r277 71 71 function is_valid() { 72 72 // no double calculation 73 if($this->is_valid ) return $this->is_valid;73 if($this->is_valid !== null) return $this->is_valid; 74 74 75 75 if($this->debug) { -
lib/loader.php
r273 r277 48 48 extract($conf); // for saving long human reading times :D 49 49 50 51 50 require "$lib/cache.php"; 52 51 $js_cache = new t29Cache(); … … 60 59 require "$lib/ressourceloader.php"; 61 60 $loader = new $class($conf); 62 $js_cache->start_cache(array($loader, 'compression_filter'), true);61 if(!$debug) $js_cache->start_cache(array($loader, 'compression_filter'), true); 63 62 $loader->run(); -
lib/technikum29.php
r275 r277 13 13 $webroot = realpath("$lib/../"); # file path to root of t29 web installation 14 14 $file = substr($_SERVER['SCRIPT_FILENAME'], strlen($_SERVER['DOCUMENT_ROOT'])); # e.g.: "/de/page.php" 15 16 // exactly define debugging behaviour 17 if(isset($_GET['debug'])) { 18 $_GET['purge_cache'] = true; 19 $_GET['rl_debug'] = true; 20 } 15 21 16 22 $cache_dir = "$webroot/shared/cache"; -
lib/template.php
r276 r277 104 104 <?php 105 105 if(isset($this->conf['version'])) printf('<meta name="t29.version" content="%s">', $this->conf['version']); 106 if(isset($_GET['debug'])) 107 foreach(explode(' ','debug rl_debug skip_cache purge_cache verbose_cache') as $x) 108 printf("\n <meta name='t29.template.data-%s' content='%s'>", $x, isset($_GET[$x])?'true':'false'); 106 109 ?> 107 110 … … 251 254 </footer> 252 255 </div> <!--! end of #container --> 253 256 </div><!-- end of div id="footer-background-container" helper --> 254 257 255 258 <!-- JavaScript at the bottom for fast page loading --> … … 264 267 printf(' <script src="%s"></script>'.PHP_EOL, $js); 265 268 ?> 266 </div><!-- end of div id="footer-background-container" helper -->267 269 </body> 268 270 </html>
Note: See TracChangeset
for help on using the changeset viewer.