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

Can't make plugin working with Moodle 3.11 and AWS elasticache Redis #26

Open
pdechandol opened this issue Sep 30, 2021 · 1 comment
Open

Comments

@pdechandol
Copy link

Hi,

I'm struggling to make the plugin work with my Moodle instance.
The test page says that my configuration (done in config.php) is OK.
But my Redis store isn't created and the store mappings aren't set.

My Moodle instance is deployed in AWS cluster.
The Redis host is an AWS Elastisearch host.
If I set everything manually in Moodle administration, everything is ok.

Here is the piece of my config.php dealing with the plugin.
The expression {{ ... }} are well-replaced and the resulting final file is correct.

`$CFG->tool_forcedcache_config_array = [
'stores' => [
// Redis is an all round great workhorse cache which
// we use as the main shared cache.
// https://docs.moodle.org/en/Redis_cache_store
'aws_elasticache_redis' => [
'type' => 'redis',
'name' => 'aws_elasticache_redis',
'config' => [
'server' => '{{ .Values.config.elasticacheClusterAddress }}',
'prefix' => '{{ .Values.config.redisPrefix }}',
'password' => '',
'serializer' => 1,
'compressor' => 0
]
]
],
'rules' => [
'application' => [
[
'stores' => ['aws_elasticache_redis']
]
],
'session' => [
[
'stores' => ['aws_elasticache_redis']
]
],
'request' => []
],
'definitionoverrides' => []
];

$CFG->alternative_cache_factory_class = 'tool_forcedcache_cache_factory';`
@Peterburnett
Copy link
Contributor

Hi @pdechandol Are you able to post a screenshot of the /admin/tool/forcedcache/index.php page. The above config all looks correct, but its formatting makes it difficult to spot subtle errors.

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