Missatges enviats per Howard Miller

Imatge Core developers Imatge Documentation writers Imatge Particularly helpful Moodlers Imatge Peer reviewers Imatge Plugin developers
Hi Gareth,

I have both. The settings.php is site-wide and is fine. I'm talking about the settings in the 'mdl_enrol' table which are created for each instance of an enrolment plugin in a course. When the course is backed up the instance data find its way into the backup file. However, when it's restored, a default instance is created and any changes don't happen.
Imatge Core developers Imatge Documentation writers Imatge Particularly helpful Moodlers Imatge Peer reviewers Imatge Plugin developers

Yeh - that's what I was expecting looking at other plugins.

Oh well... more head scratching Somrient
 
As an aside... the parameters definitely find their way into the backup XML. They just don't restore. 
Imatge Core developers Imatge Documentation writers Imatge Particularly helpful Moodlers Imatge Peer reviewers Imatge Plugin developers

Bit of a long shot...

I wrote a custom enrolment plugin a long time ago. It extends the database enrolment plugin and does a few extra things. Nothing exciting. 

However, I can't get it to work properly with backup and restore. It has a load of custom settings using customintX and customtextX fields. When a course is restored (with appropriate settings) the instance of the enrol plugin restores but loses all of its settings. They appear to just be a default, new instance. 

I'm not sure what I'm missing - the various restore_ functions are shared with enrol_database which obviously works. 

Any thoughts / places to look?

Mitjana de qualificacions: -
Imatge Core developers Imatge Documentation writers Imatge Particularly helpful Moodlers Imatge Peer reviewers Imatge Plugin developers
How slow is slow? What is your ball park page load time?

1. I would think that your VM is kind of marginal but I wouldn't expect it to be super slow with no users.
2. It should be mostly ok out of the box with (again) no users although there is much you can do
3. Depends on the traffic - but same answer - with only one user it isn't the problem. BUT... are you *SURE* you have configured Moodle properly for redis? It's easy to get wrong - it's confusing. Go to Site admin > Plugins > Caching > Configuration > enable a Redis cache, and 'Edit mappings' to make Redis the default. Mappings link is invisible at the very bottom of the page and easily missed.
4. It's fine as long as you don't try to use it for the cache (which is the default if Redis isn't working).
5. Yes and no

In summary, I would start by concentrating on your cache. Check very carefully that you have configured it properly and *prove* it is working. Get a client for Redis and watch keys being created.