• R/O
  • SSH
  • HTTPS

jinrousiki: Commit


Commit MetaInfo

Revisão2341 (tree)
Hora2019-10-08 01:28:54
Autorumethyl

Mensagem de Log

OldLogHTML::EnableCache()

Mudança Sumário

Diff

--- trunk/include/html/old_log_html_class.php (revision 2340)
+++ trunk/include/html/old_log_html_class.php (revision 2341)
@@ -93,9 +93,9 @@
9393 HTML::OutputResult($title, Text::Join(OldLogMessage::NO_LOG, $back));
9494 }
9595
96- $cache_flag = false; //キャッシュ取得判定
96+ $cache_flag = false; //キャッシュ有効判定
9797 if (JinrouCacheManager::Enable(JinrouCacheManager::LOG_LIST)) {
98- $cache_flag = self::IsCache();
98+ $cache_flag = self::EnableCache();
9999 if (true === $cache_flag) {
100100 $str = JinrouCacheManager::Get(JinrouCacheManager::LOG_LIST);
101101 if (true === isset($str)) {
@@ -212,7 +212,9 @@
212212 //過去ログ一覧のHTML化処理
213213 public static function GenerateIndex() {
214214 RQ::Set('reverse', Switcher::OFF);
215- if (RQ::Get()->max_room_no < 1) return false;
215+ if (RQ::Get()->max_room_no < 1) {
216+ return false;
217+ }
216218
217219 $header = sprintf('../log/%sindex', RQ::Get()->prefix);
218220 $footer = Text::LineFeed('</body></html>');
@@ -473,7 +475,7 @@
473475 }
474476
475477 //キャッシュ有効判定
476- private static function IsCache() {
478+ private static function EnableCache() {
477479 foreach (RQ::Get() as $key => $value) { //何か値がセットされていたら無効
478480 switch ($key) {
479481 case 'page':
Show on old repository browser