[TYPO3-dev] Clear cache useHashCash in typo3 4.7.12

Popy popy.dev at gmail.com
Mon Jul 15 10:22:04 CEST 2013


Don't. Use cache tags :)

Popy

2013/7/15 Иван <i-litovan at yandex.ru>

> Hi,
>
> I can clear cache page - cmd command...
> $tce = t3lib_div::makeInstance('**t3lib_TCEmain');
> $tce->clear_cacheCmd('all');
>
> And , how I can clear useHashCash in typo3 4.7.12 - cashe my FE plugin?
> This next code working only old typo3 version:
>
> function clearSpecificCache($pid, $cHash=false) {
>    if(is_array($pid)) {
>        $GLOBALS['TYPO3_DB']->exec_**DELETEquery('cache_pages', 'page_id
> IN (' . implode(',', $pid) . ')');
>        $GLOBALS['TYPO3_DB']->exec_**DELETEquery('cache_**pagesection',
> 'page_id IN (' . implode(',', $pid) .')');
>    } else {
>        $addWhere = $cHash ? ' and cHash = "' . $cHash . '"' : '';
>        $GLOBALS['TYPO3_DB']->exec_**DELETEquery('cache_pages', 'page_id =
> ' . $pid . $addWhere);
>        $GLOBALS['TYPO3_DB']->exec_**DELETEquery('cache_**pagesection',
> 'page_id = ' . $pid . $addWhere);
>    }
> }
> And how i can validation cHash from url in browser in new version typo3
> (4.7.5-12)?
>
>
> Thankyou...
>
> ______________________________**_________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.typo3.org
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-dev<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev>
>



More information about the TYPO3-dev mailing list