Clear theme cache - safe and seemless on busy production sites?

Clear theme cache - safe and seemless on busy production sites?

by Garret Gengler -
Number of replies: 0

Reposting here since this didn't get any responses in the general problems forum...

Hello folks... a few days ago, we completed migration of a busy university site from Moodle 1.9 to 2.2.

So far so good.. it's running well enough, and people seem to like the changes.   I may have to look into running a PHP accelerator, since Apache reports pages are taking twice as long to render (averaging 600msec versus 300ms for M1.9)... We tried APC years ago but had to turn it off because of site instability.

Anyway... something I need to do right now is make a few adjustments to the CSS in our custom theme.

It's unclear to me how seemless the "Clear Theme Caches" operation is.   Reading the code, I don't see any logic that would generate an updated cached theme before deleting the old one... it looks like the code just deletes the theme cache files first.

Can someone with a large and busy site confirm that it's safe to clear the theme cache during the business day?   The last thing I want with a brand new M2 site, is to have the site load with no CSS, or a broken theme, or a blank page... gotta keep perceptions high and all that.

What would be great is if the theme cache would automatically expire itself after x hours.   Maybe it does that already?

Always a bit paranoid,
-Garret Gengler
University of Illinois

Average of ratings: -