Project

General

Profile

Actions

Bug #79236

closed

Clear cache for single page doesn't work

Added by Pixelant Developer almost 8 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2017-01-10
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

When clear cache for single page using button "Clear cache for this page" it doesn't work because of typo in variable name on line 214 of CacheManager "sysext/core/Classes/Cache/CacheManager.php".

public function flushCachesInGroupByTags($groupIdentifier, array $tags)
    {
        if (empty($tag)) {
            return;
        }
        $this->createAllCaches();
        if (!isset($this->cacheGroups[$groupIdentifier])) {
            throw new NoSuchCacheGroupException('No cache in the specified group \'' . $groupIdentifier . '\'', 1390337130);
        }
        foreach ($this->cacheGroups[$groupIdentifier] as $cacheIdentifier) {
            if (isset($this->caches[$cacheIdentifier])) {
                $this->caches[$cacheIdentifier]->flushByTags($tags);
            }
        }
    }

but the "$tag" is never set. it should be "$tags".

Actions

Also available in: Atom PDF