OSDN Git Service

ビューキャッシュ設定追加
authorCake <cake_67@users.sourceforge.jp>
Wed, 21 Jul 2010 06:18:39 +0000 (15:18 +0900)
committerCake <cake_67@users.sourceforge.jp>
Wed, 21 Jul 2010 06:18:39 +0000 (15:18 +0900)
app/controllers/character_pictures_controller.php
app/controllers/character_profile_archives_controller.php
app/controllers/systems_controller.php

index 7408e1b..025b359 100644 (file)
@@ -18,6 +18,12 @@ class CharacterPicturesController extends AppController {
 
                parent::beforeFilter();
 
+               // Cache
+               $this->cacheAction = array(
+                       'index' => Configure::read('Cache.expireLong'),
+                       'view/' => Configure::read('Cache.expire'),
+               );
+
                // 認証なしアクセス可
                $this->AuthPlus->allow('view');
                $this->AuthPlus->allow('index');
index a227c55..ba1fbad 100644 (file)
@@ -35,6 +35,12 @@ class CharacterProfileArchivesController extends AppController {
 
                parent::beforeFilter();
 
+               // Cache
+               $this->cacheAction = array(
+                       'index' => Configure::read('Cache.expire'),
+                       'view/' => Configure::read('Cache.expire'),
+               );
+
                // 認証なしアクセス可
                $this->AuthPlus->allow('view');
                $this->AuthPlus->allow('index');
index ed86aa3..7cb880c 100644 (file)
@@ -36,6 +36,12 @@ class SystemsController extends AppController {
 
                parent::beforeFilter();
 
+               // Cache
+               $this->cacheAction = array(
+                       'index' => Configure::read('Cache.expireLong'),
+                       'view/' => Configure::read('Cache.expire'),
+               );
+
                // 認証なしアクセス可
                $this->AuthPlus->allow('index');
                $this->AuthPlus->allow('view');