Project

General

Profile

Actions

Bug #17627

closed

External TypoScripts files will always be cached

Added by Eckhard M. Jäger over 16 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2007-09-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Scenario:
I'm using SweeTS (typo3.area42.de) developing TYPO3 websites with an external typoscript file. I disable template caching so any changes of the template are visible by reloading the frontend:

page.config.no_cache = 1
<INCLUDE_TYPOSCRIPT: source="FILE: /fileadmin/sweets.ts">

Problem:
When i change my external typoscript files and reload the frontend in the browser nothing happens because the external typoscript file is always being cached. So i have to go to the backend and must clear the FE chache first. The very bad for the workflow working with external typoscript files.

Solution:
May if template cache is disabled include cache should be disable too. Another solution could be a new Command:
page.config.no_cacheInclude = 1

SweeTS: typo3.area42.de
(issue imported from #M6395)


Files

patch_6395.diff (945 Bytes) patch_6395.diff Administrator Admin, 2008-11-14 00:30
patch_6395__v2.diff (3.48 KB) patch_6395__v2.diff Administrator Admin, 2009-04-21 22:11

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #21421: slow t3lib_TSparser::parseSubClosedBernhard Kraft2009-11-01

Actions
Actions #1

Updated by Lucas Bremgartner over 16 years ago

Workaround for this issue is to add the following lines in User TSConfig:

admPanel.override.tsdebug.forceTemplateParsing = 1

Actions #2

Updated by Eckhard M. Jäger about 16 years ago

Thanx Lucas! A great hint :)

I published this hint (and some more) at the SweeTS website and added you as a contributor.

Actions #3

Updated by Michael Stucki over 15 years ago

A possible solution: Extend the rowSum data with the file templates and their mtime, then check for modification (= new mtime) right after checking the rowSum (happens in t3lib_TStemplate).

Actions #4

Updated by Bernhard Kraft over 15 years ago

I attached a patch file "patch_6395.diff" which implements Michaels suggestions to add an information about the file templates to the rowSum array.

But instead of adding the file mtime I simply added the md5 sum of the template string, containing the included templates. so if the templates get changed their md5 sum will change and they get parsed again.

Actions #5

Updated by Bernhard Kraft almost 15 years ago

fixed in trunk rev5395

Actions #6

Updated by Bernhard Kraft almost 15 years ago

fixed in trunk rev5395

Actions

Also available in: Atom PDF