Code Duplication    Length = 9-9 lines in 2 locations

i18n/i18n.php 1 location

@@ 108-116 (lines=9) @@
105
		$cache = self::get_cache();
106
		$backend = $cache->getBackend();
107
108
		if(
109
			$backend instanceof Zend_Cache_Backend_ExtendedInterface
110
			&& ($capabilities = $backend->getCapabilities())
111
			&& $capabilities['tags']
112
		) {
113
			$cache->clean(Zend_Cache::CLEANING_MODE_MATCHING_TAG, $cache->getTags());
114
		} else {
115
			$cache->clean(Zend_Cache::CLEANING_MODE_ALL);
116
		}
117
	}
118
119
	/**

view/SSViewer.php 1 location

@@ 1083-1091 (lines=9) @@
1080
			$cache = SS_Cache::factory('cacheblock');
1081
			$backend = $cache->getBackend();
1082
1083
			if(
1084
				$backend instanceof Zend_Cache_Backend_ExtendedInterface
1085
				&& ($capabilities = $backend->getCapabilities())
1086
				&& $capabilities['tags']
1087
			) {
1088
				$cache->clean(Zend_Cache::CLEANING_MODE_MATCHING_TAG, $cache->getTags());
1089
			} else {
1090
				$cache->clean(Zend_Cache::CLEANING_MODE_ALL);
1091
			}
1092
1093
1094
			self::$cacheblock_cache_flushed = true;