Bug #26161

cache_treelist is out of date when using starttime

Added by D. Pöpping over 8 years ago. Updated 10 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Caching
Start date:
2011-04-21
Due date:
% Done:

0%

TYPO3 Version:
4.4
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

When using a startdate for a page the tslib_cObj->getTreeList will never get this page in its results until "clear all cache" is used in order to clear the cache table for the tree list results.
(see Feature #18852 and related Bug #22412)

Diff-REALMCTECHNIK-227.diff View - Patch (3.29 KB) Daniel Siepmann, 2013-09-17 14:01


Related issues

Related to TYPO3 Core - Feature #18852: Speed up tslib_cObj->getTreeList by caching its results Closed 2008-05-26
Related to TYPO3 Core - Bug #22412: cache_treelist is out of date Closed 2010-04-10

History

#1 Updated by Daniel Siepmann almost 6 years ago

We have same issue in 4.7.15.

Here is our setup:
- [1] Folder
-- [2] Page 1 [Start Monday End Tuesday]
-- [3] Page 2 [Start Tuesday End Wednesday]
-- [4] Page 3 [Start Wednesday End Thursday]
-- ...

Our TypoScript is the following:

lib.example < styles.content.get
lib.example.select {
    where = colPos=1
    pidInList = 1
    recursive = 3
}

On Monday the first entry will be inserted into the table containing only 1 and 2.
On Tuesday the same entry will be fetched, but Page 2 is no more accessible. But Page 2 is which is not in the cache entry.

If you don't clear the cache it will not work.

I attached our own working patch for 4.7.15.
It will insert the expired time for the first possible situation. So if we have Tuesday it will no longer fetch the cached entry, but will create a new one and remove the old one.

Another problem was that the simulated time was not used, so you could not test this scenario using the admin panel.

#2 Updated by Wouter Wolters almost 6 years ago

  • Is Regression set to No

Hi Daniel,

Can you push a patch for this to Gerrit?
For information about how to do this see: http://wiki.typo3.org/CWT

Greetz Wouter

#3 Updated by Mathias Schreiber over 4 years ago

  • Target version set to 7.2 (Frontend)

#4 Updated by Benni Mack about 4 years ago

  • Target version changed from 7.2 (Frontend) to 7.4 (Backend)

#5 Updated by Susanne Moog about 4 years ago

  • Target version changed from 7.4 (Backend) to 7.5

#6 Updated by Benni Mack almost 4 years ago

  • Target version changed from 7.5 to 7 LTS

#7 Updated by Mathias Schreiber almost 4 years ago

  • Target version changed from 7 LTS to 8 LTS

#8 Updated by Benni Mack over 2 years ago

  • Target version changed from 8 LTS to Candidate for patchlevel

#9 Updated by ondro no-lastname-given 10 months ago

D. Pöpping wrote:

When using a startdate for a page the tslib_cObj->getTreeList will never get this page in its results until "clear all cache" is used in order to clear the cache table for the tree list results.
(see Feature #18852 and related Bug #22412)

Can confirm same behaviour with Typo3 8.7.19

Also available in: Atom PDF