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

Caching problem cause language error at first load #5

Open
Peter83 opened this issue Feb 16, 2016 · 0 comments
Open

Caching problem cause language error at first load #5

Peter83 opened this issue Feb 16, 2016 · 0 comments

Comments

@Peter83
Copy link

Peter83 commented Feb 16, 2016

I'm trying to solve a bug with the elgg_set_plugin_setting for "allowed_languages", it suffers of caching problems, continuously deleting and rewriting the plugin setting on the DB, causing also a first load language selection error when the browser language it's different from default one.
I'm debugging with DB table "private_settings" opened to get the point but I'm not able to solve it, it seems that
elgg_register_plugin_hook_handler("all", "plugin", "language_selector_invalidate_setting");
and
elgg_register_event_handler("all", "plugin", "language_selector_invalidate_setting");

are involved in the caching problem, since when commenting this lines the problem disappear.
The language_selector_invalidate_setting is invoked correctly only one time during the hook trigger 'setting','plugin' just before the setPrivateSetting, but the data on the private_settings DB table disappears during the page cycle execution (I guess inside the elgg_trigger_event('init', 'system').
I'm running elgg 1.8.18.
Thank you for help.

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

No branches or pull requests

1 participant