{
$action = GeneralUtility::_GP('ACTION');
- if (isset($action['removeExpiredPages'])) {
+ if (isset($action['removeExpiredPages']) && (bool)$action['removeExpiredPages']) {
CacheUtility::getCache()
->collectGarbage();
}
- [TASK] Convert array to short syntax (need PHP 5.4.x)
- [BUGFIX] #70673 No static file after FE user logged out
- [BUGFIX] #70994 Tree view in info module just one entry (TYPO3 7.x)
+- [BUGFIX] Fix the remove expired pages button
2015-09-09 Tim Lochmüller <tim@fruit-lab.de>
<h1>Static file cache</h1>
<p>
- <button type="submit" class="btn btn-default" onclick="return confirm('Are you sure?');" value="" name="ACTION[removeExpiredPages]">
+
+ <a href="{requestUri}&ACTION[removeExpiredPages]=1" class="btn btn-default" onclick="return confirm('Are you sure?');">
<f:be.buttons.icon icon="actions-edit-delete" />
Remove all expired pages
- </button>
- <a href="{requestUri}" class="btn btn-default">
- <f:be.buttons.icon icon="actions-system-refresh" title="{f:translate(key: 'LLL:EXT:lang/locallang_core.xml:labels.refresh')}" />
+ </a>
+ <a href="{requestUri}&ACTION[removeExpiredPages]=0" class="btn btn-default">
+ <f:be.buttons.icon icon="actions-system-refresh" />
{f:translate(key: 'LLL:EXT:lang/locallang_core.xml:labels.refresh')}
</a>
</p>