48 if (preg_match(self::PATTERN_ENTRYIDENTIFIER,
$identifier) !== 1) {
49 throw new \InvalidArgumentException(
'"' .
$identifier .
'" is not a valid cache identifier.', 1203584729);
83 public function has($entryIdentifier)
86 throw new \InvalidArgumentException(
'"' . $entryIdentifier .
'" is not a valid cache entry identifier.', 1233058486);
88 return $this->backend->has($entryIdentifier);
98 public function remove($entryIdentifier)
101 throw new \InvalidArgumentException(
'"' . $entryIdentifier .
'" is not a valid cache entry identifier.', 1233058495);
103 return $this->backend->remove($entryIdentifier);
111 $this->backend->flush();
122 foreach ($tags as $tag) {
124 throw new \InvalidArgumentException(
'"' . $tag .
'" is not a valid tag for a cache entry.', 1233057360);
128 $this->backend->flushByTags($tags);
141 throw new \InvalidArgumentException(
'"' . $tag .
'" is not a valid tag for a cache entry.', 1233057359);
144 foreach (
$GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
't3lib/cache/frontend/class.t3lib_cache_frontend_abstractfrontend.php'][
'flushByTag'] ?? [] as $_funcRef) {
145 $params = [
'tag' => $tag];
146 GeneralUtility::callUserFunction($_funcRef, $params, $this);
150 $this->backend->flushByTag($tag);
159 $this->backend->collectGarbage();
170 return preg_match(self::PATTERN_ENTRYIDENTIFIER,
$identifier) === 1;
181 if (!is_array($tag)) {
182 return preg_match(self::PATTERN_TAG, $tag) === 1;
184 foreach ($tag as $tagValue) {