Changeset 53

Show
Ignore:
Timestamp:
12/18/05 10:49:17 (3 years ago)
Author:
fabien
Message:

day 19 modifications

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/frontend/modules/tag/actions/actions.class.php

    r40 r53  
    3939 
    4040    $this->tags = $this->question->getTags(); 
     41 
     42    // clear the question tag list fragment in cache 
     43    $this->getContext()->getViewCacheManager()->remove('@question?stripped_title='.$this->question->getStrippedTitle(), 'fragment_question_tags'); 
    4144  } 
    4245 
     
    5659 
    5760    $this->tags = $this->question->getTags(); 
     61 
     62    // clear the question tag list fragment in cache 
     63    $this->getContext()->getViewCacheManager()->remove('@question?stripped_title='.$this->question->getStrippedTitle(), 'fragment_question_tags'); 
    5864  } 
    5965 
  • trunk/frontend/modules/tag/templates/_question_tags.php

    r38 r53  
    2121  </ul> 
    2222<?php else: ?> 
    23   <?php echo include_partial('tag/tag_cloud', array('tags' => QuestionTagPeer::getPopularTagsFor($question))) ?> 
     23  <?php if (!cache('question_tags', 3600)): ?> 
     24    <?php echo include_partial('tag/tag_cloud', array('tags' => QuestionTagPeer::getPopularTagsFor($question))) ?> 
     25    <?php cache_save() ?> 
     26  <?php endif ?> 
    2427<?php endif ?>