[TYPO3-core] RFC #9284: Feature: set $GLOBALS['TSFE']->cacheExpires
Martin Holtz
typo3 at martinholtz.de
Thu Oct 16 22:08:04 CEST 2008
Hi,
This is another SVN patch request.
Type: Feature
Bugtracker references:
http://bugs.typo3.org/view.php?id=9284
Branches:
TYPO3_4_TRUNK
We discussed this issue, i learned a lot (thanks for that).
I decided to remove the hook and the sql-query, so only the following lines
are needed.
+ // only if content is not "message_page_is_being_generated"
+ // which expires after 30 seconds
+ if (!$this->tempContent) {
+ // can be changed from an extension via $GLOBALS['TSFE']->cacheExpires
+ // $this->cacheExpires is default 0
+ if ($this->cacheExpires > 0 && $tstamp > $this->cacheExpires) { $tstamp
= $this->cacheExpires; }
+ }
so every extension author has the possibility to write an solution for his
extension and i will start searching for an solution for tt_content:)
Did i missed anything?
regards,
martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2008.10.16.tslib_class_fe.php_patch.diff
Type: text/x-diff
Size: 816 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20081016/92cfc82f/attachment.diff
More information about the TYPO3-team-core
mailing list