Login an account as an user:
su user
Enter Moodle root folder and run as the following:
php admin/cli/purge_caches.php
Source: https://docs.moodle.org/310/en/Administration_via_command_line#Purge_caches
Notes
Login an account as an user:
su user
Enter Moodle root folder and run as the following:
php admin/cli/purge_caches.php
Source: https://docs.moodle.org/310/en/Administration_via_command_line#Purge_caches