[TYPO3-core] RFC #17060: Only log complete page cache flushes
Ernesto Baschny [cron IT]
ernst at cron-it.de
Mon Jan 17 15:27:58 CET 2011
Steffen Gebert schrieb am 16.01.2011 12:47:
> Hi!
>
> This is a SVN patch request.
>
> Type: Bugfix
>
> Bugtracker reference:
> http://bugs.typo3.org/view.php?id=17060
>
> Branches:
> trunk
>
> Problem:
> #15305 introduced a logging of every call to
> t3lib_TCEmain::clear_cacheCmd($cacheCmd).
>
> Quote of the oringinal poster:
>> It is sometimes necessary to know, which user has cleared the cache,
>> especially if you got a large website and this cache clearing caused >
> some troubles.
>> Because of this every cache clearing action should appear in the Log
>>module.
>
> I don't expect cache clearings of a single page to cause big trouble,
> however I agree with logging of cache flushes.
>
> Reason, why I'd like to change this: If you manually call cacheCmd()
> with always a page IDs as parameter, you flood your logs.
> Imagine, you only want to clear cache of a branch recursively, you have
> to call it hundreds/thousand times - and create that many log entries.
>
> Solution:
> Move logging to internal_clearPageCache(), which flushes the whole page
> cache.
+1 on reading. Sounds like a good change.
> Note:
> And example extension, making use of single calls to clear_cacheCmd() is
> stg_clearcache, which allows editors to clear the cache of a branch, to
> which they have access (using the existing "Clear cache of this page"
> icon). This is handy for *large* sites, as you don't have to allow them
> to flush the *whole* page cache.
That functionality would be a good candidate for inclusion in the core!
Cheers,
Ernesto
More information about the TYPO3-team-core
mailing list