Added feature #15305: Logging cache clearing, credits Stefan Sprenger
authorIngo Renner <ingo.renner@typo3.org>
Wed, 4 Aug 2010 16:02:26 +0000 (16:02 +0000)
committerIngo Renner <ingo.renner@typo3.org>
Wed, 4 Aug 2010 16:02:26 +0000 (16:02 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@8481 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tcemain.php
typo3/sysext/belog/mod/index.php
typo3/sysext/belog/mod/locallang.xml

index 467f790..943a723 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-08-04  Ingo Renner  <ingo@typo3.org>
+
+       * Added feature #15305: Logging cache clearing, credits Stefan Sprenger
+
 2010-08-03  Susanne Moog  <typo3@susanne-moog.de>
 
        * Fixed bug #15304: csv export is limiting exported fields to 100 chars (thanks to Bj√∂rn Pedersen)
@@ -23,7 +27,7 @@
 
        * Follow-up to bug #15188: Remove default greyed out effect for CEs (Thanks to Steffen Gebert)
        * Fixed bug #15295: Page treeFilter not re-applied after branch toggling (Thanks to Felix Kopp)
-       
+
 2010-07-29  Dmitry Dulepov  <dmitry@typo3.org>
 
        * Fixed bug #13427: t3lib_div::cleanOutputBuffers() might loop forever (thanks to Stephan Seitz and Steffen Gebert)
index 7726685..f9a4c89 100644 (file)
@@ -7432,6 +7432,8 @@ State was change by %s (username: %s)
        public function clear_cacheCmd($cacheCmd)       {
                global $TYPO3_CONF_VARS;
 
+               $this->BE_USER->writelog(3, 1, 0, 0, 'User %s has cleared the cache (cacheCmd=%s)', array($this->BE_USER->user['username'], $cacheCmd));
+
                        // Clear cache for either ALL pages or ALL tables!
                switch($cacheCmd)       {
                        case 'pages':
index 7a6990e..d2e9aa8 100755 (executable)
@@ -168,6 +168,7 @@ class SC_mod_tools_log_index {
                                0 => $GLOBALS['LANG']->getLL('any'),
                                1 => $GLOBALS['LANG']->getLL('actionDatabase'),
                                2 => $GLOBALS['LANG']->getLL('actionFile'),
+                               3 => $GLOBALS['LANG']->getLL('actionCache'),
                                254 => $GLOBALS['LANG']->getLL('actionSettings'),
                                255 => $GLOBALS['LANG']->getLL('actionLogin'),
                                '-1' => $GLOBALS['LANG']->getLL('actionErrors')
index 614b0de..3597ea9 100755 (executable)
@@ -31,6 +31,7 @@
                        <label index="actionAll">All</label>
                        <label index="actionDatabase">Database</label>
                        <label index="actionFile">File</label>
+                       <label index="actionCache">Cache</label>
                        <label index="actionSettings">Settings</label>
                        <label index="actionLogin">Login</label>
                        <label index="actionErrors">Errors</label>
@@ -93,6 +94,8 @@
                        <label index="action_2_8">New file</label>
                        <label index="action_2_9">Edit</label>
                        <label index="msg_2_9_1">File saved to '%s', bytes: %s, MD5: %s </label>
+                       <label index="type_3">CACHE</label>
+                       <label index="action_3_1">Clear Cache</label>
                        <label index="type_254">SETTING</label>
                        <label index="action_254_1">Change</label>
                        <label index="type_255">LOGIN</label>