[TYPO3-core] RFC 15286 : Feature: Deactivating the cache menu for admins

Stefan Sprenger stefan.sprenger at dkd.de
Thu Jul 29 13:15:09 CEST 2010


This is an SVN patch request.

Type: Feature

Bugtracker references:
http://bugs.typo3.org/view.php?id=15286

Branches:
trunk

Problem:
Clearing the whole page cache on large websites will cause massive performance issues.
Because of this, clearing the cache is deactived for regular users by default.

Nonetheless, all admins can clear the cache and there is no possibility to control this behavior.

By default, cache clearing should be available for admins but it should also be possible to deactive it by using the same TSConfig options as for regular users (options.clearCache.all=0 and/or options.clearCache.pages=0).

Solution:
If the current user is an admin I check, if the TSConfig options concerning the caches, equal anything but 0. So, by default admins are able to clear caches.
Only if the options equal 0, the respective admin can't clear caches.


Best regards

Stefan Sprenger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cache_menu_for_admins.patch
Type: application/octet-stream
Size: 3555 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100729/6c98545c/attachment.obj>
-------------- next part --------------

--

Stefan Sprenger

d.k.d Internet Service GmbH
Kaiserstra?e 73
60329 Frankfurt/Main

fon:  +49 (0)69 - 2475 218 - 0
fax:  +49 (0)69 - 2475 218 - 99
mail: stefan.sprenger at dkd.de
web: http://www.dkd.de

Registergericht: Amtsgericht Frankfurt am Main
Registernummer: HRB 45590
Gesch?ftsf?hrer: Olivier Dobberkau, S?ren Schaffstein, G?tz Wegenast

Aktuelle Projekte:
https://www.domizilspiel.at  ?  Launch Spieleplattform (TYPO3)
http://www.lauer-fischer.de  ?  Relaunch Website (TYPO3)
http://www.mmk-frankfurt.de  ?  Relaunch Website (TYPO3)

Karriere bei dkd:
Jetzt als TYPO3 Senior Entwickler bewerben: http://www.dkd.de/de/jobs/typo3-entwickler/



More information about the TYPO3-team-core mailing list