-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fast cache clearing on Linux does not behave correctly #45
Comments
|
I understood the purpose of moving the directory already, that's not the problem. The problem is that this In regards to Docker volumes, this is a valid solution. This still leaves setups where |
Well, I didn't think about this possibility to use Symlink. If you want, you can program or document this behavior.
|
The cache clearing command currently attempts to use a shortcut to move the
sCompileDir
out of the way for OXID to immediately create a new one:https://github.com/OXIDprojects/oxrun/blob/2c6f8376aa12bd0bc6425908b782c371e5cad9ac/src/Oxrun/Command/Cache/ClearCommand.php#L46-51
Respective function snippet:
oxrun/src/Oxrun/Command/Cache/ClearCommand.php
Lines 96 to 103 in 2c6f837
If the shortcut is not used then instead PHP globbing is used:
oxrun/src/Oxrun/Command/Cache/ClearCommand.php
Lines 81 to 90 in 2c6f837
PHP globbing does not match dotfiles such as
.htaccess
, which is a file placed by the OXID eShop installation itself to prevent public access to files inside this directory. Moving the directory itself out of the way and then deleting it will cause the.htaccess
file to be deleted though.Moving the directory is also problematic in setups where the
sCompileDir
is a mount point such as in Docker environments where this directory is a volume.The text was updated successfully, but these errors were encountered: