<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[TNF : Tatter Network Foundation forum - cache 관련 질문입니다.]]></title>
		<link>http://forum.tattersite.com/ko/viewtopic.php?id=5011</link>
		<description><![CDATA[cache 관련 질문입니다. 의 최근 RSS 글들.]]></description>
		<lastBuildDate>Thu, 20 Mar 2008 04:23:02 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[RSS 답글: cache 관련 질문입니다.]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=25578#p25578</link>
			<description><![CDATA[<p>inureyes 님//</p><p>그런데 신기하게 업데이트가 잘 되거든요??</p><p>그건 왜 그럴까요?</p><p>제가 MT_Cover_RecentPS_Default 이걸 paging이 가능하게 살짝 고쳐 놓고.. 배포를 했는데.. 업데이트가 조금 불안정하다는 이야기가 있어서 묻습니다.<br />저는 cache 관련하여서는</p><p>단순하게 paging을 위해서<br /></p><div class="codebox"><pre><code>    $cache = new PageCache;
    if( $data[&#039;usePage&#039;] == 1 )    // paging 관련 추가
        $cache-&gt;name = &#039;MT_Cover_RecentPS_Enhance&#039;.$pageNum;
    else
        $cache-&gt;name = &#039;MT_Cover_RecentPS_Enhance&#039;;
    if($cache-&gt;load()) { //If successful loads
        // If coverpage is single mode OR coverpage is coverblog and cache is not expired, return cache contents.
        if($data[&#039;coverMode&#039;]==1 || ($data[&#039;coverMode&#039;]==2 &amp;&amp; (Timestamp::getUNIXtime() - $cache-&gt;dbContents &lt; 300))) {
            return $cache-&gt;contents;
        }    
    }</code></pre></div><p>요렇게 cache name 뒤에 page를 붙이도록 수정한거 밖에 없거든요.^^</p>]]></description>
			<author><![CDATA[null@example.com (난빈)]]></author>
			<pubDate>Thu, 20 Mar 2008 04:23:02 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=25578#p25578</guid>
		</item>
		<item>
			<title><![CDATA[RSS 답글: cache 관련 질문입니다.]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=25556#p25556</link>
			<description><![CDATA[<p>지적하신 부분이 맞는 것 같습니다.:lol:</p><p><a href="http://dev.textcube.org/ticket/888">888</a>번 티켓으로 등록하였습니다^^</p>]]></description>
			<author><![CDATA[null@example.com (inureyes)]]></author>
			<pubDate>Wed, 19 Mar 2008 10:17:03 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=25556#p25556</guid>
		</item>
		<item>
			<title><![CDATA[cache 관련 질문입니다.]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=25554#p25554</link>
			<description><![CDATA[<p>텍스트 큐브에서 캐쉬를 사용하게 되어 있는걸로 알고 있습니다.</p><p>제가 기본 플러그인인 MT_Cover_RecentPS_Default 를 살펴봤는데..</p><p>캐쉬 관련하여 다음과 같은 코드가 있더군요.</p><div class="codebox"><pre><code>    $cache = new PageCache;
    $cache-&gt;name = &#039;MT_Cover_RecentPS&#039;;
    if($cache-&gt;load()) { //If successful loads
        // If coverpage is single mode OR coverpage is coverblog and cache is not expired, return cache contents.
        if($data[&#039;coverMode&#039;]==1 || ($data[&#039;coverMode&#039;]==2 &amp;&amp; (Timestamp::getUNIXtime() - $cache-&gt;dbContents &lt; 300))) {
            return $cache-&gt;contents;
        }    
    }</code></pre></div><p>해당 코드를 보면..<br />$data[&#039;coverMode&#039;]==1 즉 단일사용자 모드일 경우에는<br />새로운 캐쉬를 생성하지 않고 저장된 캐쉬를 계속 넘겨주게 되어 있는 것 같은데요..</p><p>이렇게 될 경우 계속 똑같은 페이지만 나오지 않을까요?</p><p>제가 텍스트큐브의 캐쉬 시스템에 대해 잘 몰라서 묻습니다.<br />알려주세요 <img src="http://forum.tattersite.com/ko/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p>]]></description>
			<author><![CDATA[null@example.com (난빈)]]></author>
			<pubDate>Wed, 19 Mar 2008 09:08:58 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=25554#p25554</guid>
		</item>
	</channel>
</rss>
