Les tables de caches

1
2
3
4
5
6
7
8
cache_extensions
cache_hash
cache_imagesizes
cache_md5params
cache_pages
cache_pagesection
cache_treelist
cache_typo3temp_log

Les tables du framework de cache (introduit dans TYPO3 4.3)

1
2
3
4
5
6
cachingframework_cache_hash
cachingframework_cache_hash_tags
cachingframework_cache_pages
cachingframework_cache_pagesection
cachingframework_cache_pagesection_tags
cachingframework_cache_pages_tags

Le log et l’historique

Attention : si vous voulez garder l’historique et le log des actions, ne videz pas ces tables. Au mieux, faites un script qui supprime les records de plus de x jours.

1
2
sys_log
sys_history

Les sessions actuelles du site

Déconnecte tous les utilisateurs connectés en BE et FE.

1
2
3
be_sessions
fe_sessions
fe_session_data

Les tables d’indexation (indexed_search)

1
2
3
4
5
6
7
8
9
index_debug
index_fulltext
index_grlist
index_phash
index_rel
index_section
index_stat_search
index_stat_word
index_words

Les tables de cache des urls réécrites (realurl)

1
2
3
4
5
6
tx_realurl_errorlog
tx_realurl_pathcache
tx_realurl_uniqalias
tx_realurl_urldecodecache
tx_realurl_urlencodecache
tx_realurl_chashcache

Exemple de code MySQL

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
TRUNCATE `cache_extensions`;
TRUNCATE `cache_hash`;
TRUNCATE `cache_imagesizes`;
TRUNCATE `cache_md5params`;
TRUNCATE `cache_pages`;
TRUNCATE `cache_pagesection`;
TRUNCATE `cache_treelist`;
TRUNCATE `cache_typo3temp_log`;
TRUNCATE `cachingframework_cache_hash`;
TRUNCATE `cachingframework_cache_hash_tags`;
TRUNCATE `cachingframework_cache_pages`;
TRUNCATE `cachingframework_cache_pagesection`;
TRUNCATE `cachingframework_cache_pagesection_tags`;
TRUNCATE `cachingframework_cache_pages_tags`;
TRUNCATE `sys_log`;
TRUNCATE `sys_history`;
TRUNCATE `be_sessions`;
TRUNCATE `fe_sessions`;
TRUNCATE `fe_session_data`;
TRUNCATE `index_debug`;
TRUNCATE `index_fulltext`;
TRUNCATE `index_grlist`;
TRUNCATE `index_phash`;
TRUNCATE `index_rel`;
TRUNCATE `index_section`;
TRUNCATE `index_stat_search`;
TRUNCATE `index_stat_word`;
TRUNCATE `index_words`;
TRUNCATE `tx_realurl_errorlog`;
TRUNCATE `tx_realurl_pathcache`;
TRUNCATE `tx_realurl_uniqalias`;
TRUNCATE `tx_realurl_urldecodecache`;
TRUNCATE `tx_realurl_urlencodecache`;
TRUNCATE `tx_realurl_chashcache`;
Article d’origine
http://www.ycerdan.fr/typo-3/nettoyage-des-tables-de-typo3/