SubmissionDAO::flushCache PHP 메소드

flushCache() 공개 메소드

Flush the submission cache.
public flushCache ( )
    function flushCache()
    {
        // Because both published_submissions and submissions are
        // cached by submission ID, flush both caches on update.
        $cache = $this->_getCache();
        $cache->flush();
    }

Usage Example

예제 #1
0
파일: ArticleDAO.inc.php 프로젝트: pkp/ojs
 function flushCache()
 {
     // Because both publishedArticles and articles are cached by
     // article ID, flush both caches on update.
     parent::flushCache();
     $publishedArticleDao = DAORegistry::getDAO('PublishedArticleDAO');
     $cache = $publishedArticleDao->_getPublishedArticleCache();
     $cache->flush();
 }