-
Notifications
You must be signed in to change notification settings - Fork 3
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
[BUG] Cache storage issue #20
Comments
Hi @Nuranto , Regarding Redis, I only found documentation that's say that the PHP Redis extension is required anyway (https://www.cloudways.com/blog/magento-redis/#Magento-Redis-Requirements for example); But maybe it's not ? Regarding the filesystem mode, can you tell me more about what you mean by "a remote storage like import_export" ? Thanks again |
Thanks for your quick answer ! For redis, Magento is using https://github.com/colinmollenhour/credis lib, which supports phpredis, but also propose a custom implementation. A lot of Magento users are using this custom implementation, because a lot of bugs occured with phpredis (Although I don't know the current state of this, may be it is stable now.) For the filesystem, Magento propose a remote storage adapter (S3 or S3-like) which, as redis, prevents the need of shared volumes. Magento comes with two remote folders : media folder, and var/import_export. If you can access it through Actually, why don't use Magento's cache system directly, by adding a new cache type ? https://developer.adobe.com/commerce/php/development/cache/partial/cache-type/ |
@Nuranto , thank you for this clarification. Using a new type of Magento cache is certainly a good option. We didn't do it because the Magento module is built on top of a more generic CrowdSec PHP library that provides 3 Symfony "ready-to-use" cache systems (Redis, Filesystem and Memcached). This more generic lib is aimed to be used as a quick starter for implementing a bouncer in various PHP frameworks (WordPress, Drupal, etc). It should be extendable enough to handle a new cache type but it will require some work. Regarding the filesystem issue, the What do you think ? |
Ok, I see. No changing the path won't solve the issue if you're not using Magento's filesystem classes (without it, it won't use the remote adapter, and still write files locally). |
Describe the bug
A clear and concise description of what the bug is.
Preconditions
To Reproduce
Steps to reproduce the behavior:
Expected result
A clear and concise description of what you expected to happen.
Actual result
A clear and concise description of the actual result.
The text was updated successfully, but these errors were encountered: