Feature #69975
closedMake typo3temp-path configurable
0%
Description
The typo3temp-path should be configurable.
I would suggest:
$GLOBALS['TYPO3_CONF_VARS']['BE']['tempDir']
I'm just trying to get TYPO3 frontend to run on Google Application Engine and this setting would be very helpful.
Updated by Christian Kuhn about 9 years ago
I'm not a big fan of this idea. This will trigger tons of changes and the benefit looks rather low. This also affects single extension authors and if those hard code typo3temp/ again, you're still doomed. Additionally, we may easily run into funny chicken-egg problems within bootstrap if we un-hardcode this, since the bootstrap tends to write stuff to typo3temp/ before configuration is loaded.
When I last run into issues in this area, it became obvious to me that we must change typo3temp in a way that no single file is stored within typo3temp/ directly, but everything is put into sub directories. This would give us a chance in cloud to have parts of typo3temp "shared" and other parts "locally" on nodes. We need that, since some stuff actually must stay locally, while other stuff needs to be shared. And this can only be reached if there is no single file in typo3temp/ itself.
Resource management together with work on typo3temp content will hopefully be a topic for cms 8, since we also need this if we finally want to extract extensions out of web root.
Imho, making typo3temp/ directory name configurable does not really help in the process to make the system better cloud friendly. Could you elaborate a bit what exactly is your problem with typo3temp/ in google app engine?
Updated by Jonas Enders about 9 years ago
I started to make the typo3temp path configurable and run into some problems which makes my suggested change not useful for my approach. My idea was to replace the path with the stream wrapper "gs://bucket_name/", because the normal filesystem in GAE is read-only. But in most cases the path is accessed absolutely (eg "PATH_site . $this->targetDirectory"). Changing "$this->targetDirectory" in this example to "gs://bucket_name/" wouldn't help anyway.
In the issue of backward compatibility of extensions I see unfortunately no possibility at all.
So, if you have a good idea to reach the goal, i would be happy to put some work on this project.
Updated by Benni Mack almost 9 years ago
- Category set to Miscellaneous
- Assignee set to Benni Mack
- Target version set to 8.0
Updated by Benni Mack almost 9 years ago
Hey Jonas,
in the last 3 weeks we managed to move everything to typo3temp/var/ or typo3temp/assets/ which can now be mounted on cloud hosting easily. Now these two parameters should become configurable, but I don't think a TYPO3_CONF_VARS option is the right way to do so. Either a constant (to avoid the PATH_site . 'typo3temp/var/' thing to move that outside of the directory, or we look into puli (http://docs.puli.io/en/latest/) to become even more flexible. Ping me on slack to get this started...
Updated by Gerrit Code Review over 8 years ago
- Status changed from Accepted to Under Review
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46419
Updated by Gerrit Code Review over 8 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46419
Updated by Gerrit Code Review over 8 years ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46419
Updated by Gerrit Code Review over 8 years ago
Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46419
Updated by Gerrit Code Review over 8 years ago
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47805
Updated by Benni Mack about 8 years ago
- Target version changed from 8.3 to Candidate for Major Version
Updated by Susanne Moog about 7 years ago
- Category changed from Miscellaneous to System/Bootstrap/Configuration
Updated by Benni Mack about 7 years ago
- Status changed from Under Review to Accepted
Updated by Benni Mack over 6 years ago
- Status changed from Accepted to Resolved
Going with TYPO3 v9, you now have the possibility to move typo3temp somewhere else.
Updated by Riccardo De Contardi over 6 years ago
- Related to Bug #81740: temp directory name shouldn't be hardcoded in ClearCacheService added