Purge caches

Purge caches

by Mike Normal -
Number of replies: 2

Good day!


The page for Moodle 2.7 advises us to purge caches after changing theme and code:

https://docs.moodle.org/27/en/Purge_all_cache


At docs 3.3 (what we are using now) it omits that advice:

https://docs.moodle.org/33/en/Developer_tools#Purge_all_caches


My job is providing a system moodle runs on, and I am pretty sure that our coder modified themes and code a lot.

Should I still advise him to purge all caches?

The problem is that a few admin logins are experiencing from a half to one and half minute wait before they are logged in, but we cannot reproduce their experience by trying out other admin/non-admin logins with accounts we made for seeking this bug out.

While I am seeking out and doing server side modifications, I am curious about that can it be a login name dependent problem in Moodle?

I've even asked around our numerous students, but some of them not only experiencing normal speed, but say that it is faster compared to last year's version.

Data:

7.1.8-1.el7.remi 

httpd 2.4.6-45.el7.centos.4

mariadb 10.2.7-1.el7.centos

Moodle 3.3.1+ (20170810)


Thank you for your space-time, and spare me of your wrath please, if I've posted in the wrong section.

Average of ratings: -
In reply to Mike Normal

Re: Purge caches

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hi Mike,

Purge all caches is not user name dependant in my experience.

The need to purge depends on the code.  Generally when the theme changes (or any AMD JS) then you do need to purge.  However in my themes I have an automatic programmed 'purge' whenever you upgrade them, so a manual purge is not required.  There is also a lesser theme cache purge when a given setting is changed that will affect the generated CSS.  So ask your coder about it / adding in automatic purges as required and suitable.

G

In reply to Gareth J Barnard

Re: Purge caches

by Mike Normal -

This is the exact reply I've got from our php coder.

he also told me that the cron.phps I've set up into crontab as his request do that.

Thanks.


I also would like to ask my original question again - is it advisable, and causes no problems on a currently running system to purge caches in the current version?

Note the 2 link with different descriptions above, please.