/[LeafOK_CVS]/fenglin/www/home.php
ViewVC logotype

Diff of /fenglin/www/home.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.35 by sysadm, Thu Jun 19 03:05:05 2025 UTC Revision 1.36 by sysadm, Sat Nov 15 01:54:28 2025 UTC
# Line 6  Line 6 
6          require_once "../bbs/user_section_favor.inc.php";          require_once "../bbs/user_section_favor.inc.php";
7          require_once "./load_doc_list.inc.php";          require_once "./load_doc_list.inc.php";
8    
9            $no_cache = (isset($_GET["cache"]) && $_GET["cache"] == "0");
10    
11          $s_favor = new section_favorite($_SESSION["BBS_uid"], $db_conn);          $s_favor = new section_favorite($_SESSION["BBS_uid"], $db_conn);
12    
13          // Load section list          // Load section list
# Line 68  Line 70 
70    
71          $cache_path = "../bbs/cache/www_doc_list_" . $_SESSION["BBS_uid"];          $cache_path = "../bbs/cache/www_doc_list_" . $_SESSION["BBS_uid"];
72          $buffer = false;          $buffer = false;
73          if (file_exists($cache_path))          if (!$no_cache && file_exists($cache_path))
74          {          {
75                  if (filemtime($cache_path) >= time() - 3600) // refresh interval = 1 hour                  if (filemtime($cache_path) >= time() - 3600) // refresh interval = 1 hour
76                  {                  {


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1