Bug #39096

Unnecessary compile invoked in non production context?

Added by Kobbe van Daatselaar about 3 years ago. Updated almost 2 years ago.

Status:New Start date:2012-07-19
Priority:Should have Due date:
Assigned To:- % Done:

0%

Category:Core
Target version:TYPO3 Flow Base Distribution - 2.0.1
PHP Version:5.3 Complexity:
Has patch:No Affected Flow version:FLOW3 1.1.0 rc 1

Description

In the initializeProxyClasses function in the Script.php file, the typo3.flow3:core:compile command will be invoked every request (even when nothing has changed).

I experience two issues with this:
1) Even when allCompiledCodeUpToDate is true in the initializeProxyClasses function. It always is false in the executed compile command, causing a compile in every request.

2) The compile command shouldn't be triggered in the first place (from initializeProxyClasses) when allCompiledCodeUpToDate evaluates to TRUE.
A compile is always triggered in non production context. When the compile runs (when issue 1 is solved) it doesn't do a compilation (because allCompiledCodeUpToDate then is TRUE), but you would still have the bootstrap of the compilation sub process. So in my opinion calling the compile in the first place is unnecessary.

I've discussed this issue on the IRC channel on 19-7-2012 (maybe useful to check the IRC logs)


Related issues

related to TYPO3.Flow - Bug #41497: PackageStates are written on each request Resolved 2012-10-01

History

#1 Updated by Karsten Dambekalns about 3 years ago

  • Target version set to 2.0 beta 1

#2 Updated by Karsten Dambekalns over 2 years ago

  • Target version changed from 2.0 beta 1 to 2.0

#3 Updated by Karsten Dambekalns almost 2 years ago

  • Target version changed from 2.0 to 2.0.1

Also available in: Atom PDF