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
 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();
 }