Bug #20274
Story #63815: Reduce communication between server and client
SYS_LASTCHANGED should not change when only page permissions are changed (but it does)
Status: | New | Start date: | 2009-04-03 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | - | % Done: | 0% |
|
Category: | - | Spent time: | - | |
Target version: | - | |||
TYPO3 Version: | 4.2 | Is Regression: | No | |
PHP Version: | 4.3 | Sprint Focus: | ||
Complexity: |
Description
There is a problem with the behavior of TYPO3 and the "access module". When admin user changes permissions for a backend group, SYS_LASTCHANGED is changed too.
So, when I use TypoScript to show last updated in frontend page, the date is updated but no content has changed.
My TS code :
lib.objPiedPage.5.30 = TEXT
lib.objPiedPage.5.30.data = page:lastUpdated
lib.objPiedPage.5.30.if.isTrue.Data = page:lastUpdated
lib.objPiedPage.5.30.strftime = %e %B %Y
lib.objPiedPage.5.30.wrap= <p> Last update: |</p>
lib.objPiedPage.5.30.data = register : SYS_LASTCHANGED
lib.objPiedPage.5.30.if >
(issue imported from #M10841)
History
#1 Updated by Thomas Trethan over 4 years ago
- Target version deleted (
0)
generally it would be great to be able to define what action causes an update of SYS_LASTCHANGED. For example if a new comment is posted (via frontend) I'd prefere to remain SYS_LASTCHANGED unchanged, since the article itself did not change.
#2 Updated by Ingo Pfennigstorf over 3 years ago
Also related #34219 where SYS_LASTCHANGE is updated whe changing records in the workspace
#3 Updated by Michiel Roos 8 months ago
Thomas,
No, it should change. The value is used to generate the 'Last Modified' header. If you do not change that when the content changes . . . A user with a cached version (in the browser) will check with the server when that page expires. The server will then however tell the user that the page has 'not' changed. The user will then NEVER see the new comment, perpetually serving up the content from his own cache.
#4 Updated by Alexander Opitz 8 months ago
- Description updated (diff)
- Parent task set to #63815
- Is Regression set to No
#5 Updated by Riccardo De Contardi 27 days ago
I used the typoscript included to test on both 6.2.14 and 7 (latest master):
page.40 = TEXT page.40.data = page:lastUpdated page.40.if.isTrue.Data = page:lastUpdated page.40.strftime = %e %B %Y %H:%M:%S page.40.wrap= <p> Last update: |</p> page.40.data = register : SYS_LASTCHANGED page.40.if >
then I changed the permissions of one page (changed the group, or the owner, or the permissions)
my results:
TYPO3 6.2.14 > bug still present
TYPO3 7 (latest master) > bug NOT present