[TYPO3-core] RFC: Bug (?) #7378: "Clear all caches" doesn't delete temp_CACHED... files.

Michael Stucki michael at typo3.org
Wed Feb 6 17:24:17 CET 2008


Hi Stefan,

> Problem:
> "Clear all caches" doesn't delete temp_CACHED... files.
> 
> So either "Clear all caches" is a misleading description of what it does
> and the naming should be changed or it's a bug, that should be fixed.

I don't know how this could slip through, but the name is indeed misleading!

Check out the two cache control options in TYPO3 4.1:
- Clear cache in typo3conf/
- Clear FE cache

Whereas in 4.2, the links have changed to the following:
- Clear all caches (was "Clear FE cache" before)
- Clear page content cache (new)
- Clear configuration cache (was "same as Clear cache in typo3conf/" before)

Btw. were these labels modified, or replaced with new ones (new keys)?
Because otherwise it should be mentioned that translators will most likely
not notice that the label needs to be changed.

> Solution:
> In File t3lib\class.t3lib_tcemain.php,
> function clear_cacheCmd()
> remove the break-command between "case 'all'" and "case 'temp_CACHED'"
> in line 6964

Please don't! Instead, rename the above label "all" back to "Clear FE
cache", which makes most sense. If you really like (as I've seen on the dev
list there seems to be demand for it) you can still add a new option to
clear FE and configuration cache, however it should not be disabled to
anyone but admins (or even better, make it configurable).

Sidenote: Just to let you know about, there is still a little mistake in
the "Clear FE cache" option: cache_hash is not exclusively used by the
frontend, as it also caches the parsed BEUser-TypoScript, for example.

So to be exact, this option should filter out the following identifiers when
deleting from cache_hash:
- "Glossary"
- "BE_User_TSconfig"

You can run grep to get the full list:
find . -name "*.php" | xargs egrep "(->|::)storeHash"

- michael
-- 
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/


More information about the TYPO3-team-core mailing list