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

ConfigurationGenerator is not setting ezpublish.system.cache_service_name #20

Open
SalvatorePollaci opened this issue Sep 19, 2018 · 2 comments

Comments

@SalvatorePollaci
Copy link

ConfigurationGenerator(/vendor/netgen/admin-ui-bundle/bundle/Installer/Generator/ConfigurationGenerator.php) is not setting the 'cache_service_name' attribute to '%cache_pool%' in method generate.

Consequently if NetgenAdminUIBundle is used with Legacy Bridge:

  • The Legacy Admin Ui will comunicate with symfony's cache pool 'cache.app'

  • Whereas EZ REST API will comunicate with symfony's cache pool 'cache.redis'

So if a content is published from Legacy Admin UI, keys in pool 'cache.app' will be purged, leaving 'cache.redis' keys untouched and EZ REST API will return stale data.

Alternatively state in README.md that such attribute must be set to avoid the above problems.

@emodric
Copy link
Member

emodric commented Sep 19, 2018

I'd rather it being mentioned in README.md file for two reasons:

  1. It's a configuration which does not match all usecases, therefore cannot be autogenerated
  2. It is a bug in eZ Platform, so I'd rather avoid writing code that works around a bug (which was recently fixed too)

@SalvatorePollaci Do you want to create a PR? :)

@SalvatorePollaci
Copy link
Author

Yes sound reasonable to me too. When I have a bit of free time I will create a PR on INSTALL.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants