8.11. Clearing Broker and Management Console Application Cache
Creating a cron job to regularly clear the cache at a low-traffic time of the week is useful to prevent your cache from reaching capacity. Add the following to the /etc/cron.d/openshift-rails-caches
file to perform a weekly cron job:
# Clear rails caches once a week on Sunday at 1am 0 1 * * Sun root /usr/sbin/oo-admin-broker-cache -qc 0 1 * * Sun root /usr/sbin/oo-admin-console-cache -qc
Alternatively, you can manually clear each cache for an immediate refresh. Clear the broker cache with the following command:
# oo-admin-broker-cache --clear
# oo-admin-console-cache --clear