-
-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
temp directory name shouldn't be hardcoded in CacheService #522
Comments
Hi! Thanks for your report. That is a chicken egg problem. Cache is hard flushed in the default directories, to be able to recover from fatal errors caused by extensions. Since extensions can bring cache configurations, we cannot determine the final cache directory without loading extensions, which might cause a fatal error. This means: if you configure the cache directory differently than the default, you cannot use the I would agree though, that the recently introduced Would you mind creating a pull request to fix this? Last questions:
|
Thanks for your quick response. So I have to delete the custom files/directories manually during the deployment. That's ok.
;-) As almost everytime when caching makes problems...
I thought about this problem too and came to the same results, but didn't find a solution yet. I'll let you know, when/if I have an idea.
7.6.19
4.6.4
No
We are deploying to two servers. They share fileadmin and typo3temp via nfs. But I made the experience that that's bad for typo3temp/Cache, so all file caches are configured to typo3temp_local. During the deployment, after the symlink switch, I want to make sure that everything is set up correctly and only the deployed code is used.
It's a TYO3 Surf deployment. The I think this ticket can be closed until someone has a better idea. |
Why do you share |
You could symlink (or mount) typo3temp/Cache to a local file system or maybe even better, only mount nfs to folders in typo3temp (I assume sth like typo3temp/GB) that need to be shared
you don't need to delete this folder, better only do I'll close this issue here as the reason for having a different cache folder configured are very specific and the problem to be solved to respect the different folders is hard or maybe even impossible. There always will be edge cases that won't work, just by design of the current cache configuration in TYPO3 |
Perhaps I was unclare with "file cache". I meant "php proxy files" or everything which only changes after code changes and can not be changed by an editor in the backend. |
(ahhh, I should reload the page before I write an answer ;-)) @helhum ok. And thank you for your ideas. |
@mhuber84 What I still don't get from what you have written is, why the caches in a different directory aren't flushed with this command has two steps.
So for your use case all should be good with: $clearcacheOptions = array(
'command' => array(
'{currentPath}/typo3cms install:fixfolderstructure',
'{currentPath}/typo3cms cache:flush --force',
'{currentPath}/typo3cms extension:dumpautoload'',
'sudo /etc/init.d/apache2 reload',
)
); Nevertheless, I'm going to fix the |
Previously flushing file caches was only done by performing low level operations. Now we also allow flushing file caches using the cache manager API. Fixes #522
As the name of the temp directory can be configured (f.e.
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_core']['options']['cacheDirectory'] = 'typo3temp_local';
), the name "typo3temp" shouldn't be hardcoded in the CacheService Line 191 and Line 215.The text was updated successfully, but these errors were encountered: