[TYPO3-dev] typo3 caching framework - own extension but prevent "Clear cache all"
Xavier Perseguers
xavier at typo3.org
Fri Mar 21 18:03:38 CET 2014
> Thank you for answer!
> This is exactly what I was looking for.
> But I am on 6.1.7
In 4.x I did it like that:
class tx_myext_cache_frontend_VariableFrontend extends
t3lib_cache_frontend_VariableFrontend {
/**
* Removes all cache entries of this cache.
*
* @return void
*/
public function flush() {
// DO NOTHING, pruning is done with flushByTags() from a scheduler task
//if (func_get_args() === 0) {
// //
//} else {
// if (func_get_arg(0) === 'really-flush') {
// parent::flush();
// }
//}
}
}
--
Xavier Perseguers
TYPO3 CMS Team Member
TYPO3 .... inspiring people to share!
Get involved: http://typo3.org
More information about the TYPO3-dev
mailing list