Skip to content
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

Support other cache methods than APCu #2712

Closed
trasher opened this issue Sep 8, 2017 · 1 comment
Closed

Support other cache methods than APCu #2712

trasher opened this issue Sep 8, 2017 · 1 comment
Milestone

Comments

@trasher
Copy link
Contributor

trasher commented Sep 8, 2017

Currently, locales are cached using APCu behind Zend Cache; but if APCu is working very well on linux boxes; it is still considered as beta on Windows (with IIS at least). And one may already have a caching system setted up he wants to use.

Zend Cache supports a lot of other adapters we may use:
https://docs.zendframework.com/zend-cache/storage/adapter/

We may add a parameter so we can use any extra supported adapter.

@trasher trasher added this to the Candidate for next major version milestone Sep 8, 2017
trasher added a commit to trasher/glpi that referenced this issue Sep 14, 2017
Store overridable configuration; fixes glpi-project#2712
Change cache prefix
trasher added a commit to trasher/glpi that referenced this issue Sep 14, 2017
Store overridable configuration; fixes glpi-project#2712
Change cache prefix
trasher added a commit to trasher/glpi that referenced this issue Sep 14, 2017
Store overridable configuration; fixes glpi-project#2712
Change cache prefix
@trasher trasher reopened this Sep 15, 2017
@remicollet
Copy link
Contributor

remicollet commented Sep 15, 2017

Some notices about cache adapters.

For now, only APCu is used for both entities tree cache and translation cache.

  • memory cache (APCu, Wincache, ...) is not ideal for entities tree as it won't be shared across multiple PHP servers (in big infra)
  • network shared cache (redis, memcached, ...) seems better for the entities tree
  • network shared cache doesn't seem suitable for translation cache, as each page will pull >200k over the network
  • each adapter have its own parameters (server(s), port, credentials, ...)

@trasher trasher modified the milestones: Candidate for next major version, 9.2.1 Nov 3, 2017
@trasher trasher closed this as completed Nov 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants