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

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