Project

General

Profile

Actions

Bug #39103

closed

Fix Clear Language Cache Configuration

Added by Marcus Schwemer over 12 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2012-07-19
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hi,

there are several issues with the configuration of clearing the language cache.

Wrong option naming in UserTSconfig

In "class.tx_lang_clearcachemenu.php" the UserTS option "options.clearCache.clearRTECache" is taken into account. This should be renamed to "options.clearCache.clearLangCache".

"Clear cache" Icon next to the Username (Thunderstorm Icon) is not shown, if clearLangCache (aka clearRTECache) is the only option to delete a cache.

I will dig into this. I assume that &$cacheActions are not initialized.

Configuration is inconsistent.

IMO the configuration of clearing the language cache is inconsistent to the rest of cache clearing. Why?

1) Clearing the the language cache is excluded from "Clear all caches" if $GLOBALS['TYPO3_CONF_VARS']['SYS']['lang']['cache']['clear_menu'] is set
2) In order to enable clearing the language cache for normal editors, one has to set two values
  • localconf.php: $GLOBALS['TYPO3_CONF_VARS']['SYS']['lang']['cache']['clear_menu'] = TRUE
  • UserTSConfig: options.clearCache.clearLangCache

I am in favor of dropping $GLOBALS['TYPO3_CONF_VARS']['SYS']['lang']['cache']['clear_menu'].
1) Language Cache Clearing should be included in "Clear all caches"
2) Other clear cache actions (pages / all) do not require two config options set.

I will come up with a patch

Bests
Marcus


Files

master_39103_v01.diff (2.74 KB) master_39103_v01.diff Marcus Schwemer, 2012-07-20 00:34
Actions

Also available in: Atom PDF