[xoops-cvslog 1587] CVS update: xoops2jp/html/modules/stdCache/kernel

Back to archive index

Minahito minah****@users*****
2006年 1月 6日 (金) 12:05:01 JST


Index: xoops2jp/html/modules/stdCache/kernel/StdRenderCache.class.php
diff -u xoops2jp/html/modules/stdCache/kernel/StdRenderCache.class.php:1.1.2.1 xoops2jp/html/modules/stdCache/kernel/StdRenderCache.class.php:1.1.2.2
--- xoops2jp/html/modules/stdCache/kernel/StdRenderCache.class.php:1.1.2.1	Thu Jan  5 17:52:33 2006
+++ xoops2jp/html/modules/stdCache/kernel/StdRenderCache.class.php	Fri Jan  6 12:05:01 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: StdRenderCache.class.php,v 1.1.2.1 2006/01/05 08:52:33 minahito Exp $
+// $Id: StdRenderCache.class.php,v 1.1.2.2 2006/01/06 03:05:01 minahito Exp $
 
 require_once XOOPS_ROOT_PATH . "/kernel/XCube_RenderCache.class.php";
 
@@ -35,6 +35,10 @@
 			return false;
 		}
 		
+		if (!$this->enableCache()) {
+			return false;
+		}
+		
 		$filename = XOOPS_CACHE_PATH . "/" . $this->getCacheId() . ".cache.html";
 		if (!file_exists($filename)) {
 			return false;
@@ -54,6 +58,11 @@
 
 		return true;
 	}
+
+	function enableCache()
+	{
+		return (count($this->mGroupIds) == 0 && ($this->mGroupIds[0] == XOOPS_GROUP_USERS || $this->mGroupIds[0] == XOOPS_GROUP_ANONYMOUS));
+	}
 	
 	function _setGroupIds($ids)
 	{


xoops-cvslog メーリングリストの案内
Back to archive index