When things go a little crazy and people are asking why icons are missing or why a theme change hasn’t come through, this could be a sign to clear the Moodle Cache.
This is not the Browser Cache which can be cleared by various means in each browser. See https://www.refreshyourcache.com/en/home/
There are two types of cache. Moodle has its own internal cache which impacts everyone, so clearing this cache can be completed using the admin function ‘Purge Cache’. The other type of cache is a browser cache. This can be cleared by the user in their browser. Don’t get them confused as one affects each individual user and the other affects the content delivered by Moodle.
If things seem to be going pear shaped in Moodle in relation to JavaScript not working or CSS missing, odd layouts or buttons not operating correctly, purge the cache first.
Site administration > development > Purge Caches
If you are working on a new theme or modifying code in Moodle, especially SCSS, JavaScript or HTML then you may need to Purge the Moodle Cache to be able to see or use the changes you have made.
From the Moodle description: Moodle can cache themes, javascript, language strings, filtered text, rss feeds and many other pieces of calculated data. Purging these caches will delete that data from the server and force browsers to refetch data, so that you can be sure you are seeing the most up-to-date values produced by the current code. There is no danger in purging caches, but your site may appear slower for a while until the server and clients calculate new information and cache it.
Would you like a FREE copy of the Top 10 Admin Tasks that you must know for Moodle Administrators?
You will discover some simple things that you can do in Moodle that will make your life easier.