Navigation:  Remote Monitoring and Management > Proactive Maintenance > Automated Tasks > System Automated Tasks > Maintenance (Mac) >

Backup and Purge Cache Data

Previous pageReturn to chapter overviewNext page

Backup and Purge Cache Data

Script Type: Bash

 

Cache data is thought of as any data that persists longer than temporary data. Apps normally do not require the cached data to function, but it can help to improve their performance.

 

Examples of cache data range from database cache files to downloaded content (including app installers). Depending on the app the cache data may also include settings and other support files.

 

Generally, apps are responsible for maintaining their own cache folders but when problems are experienced on the computer, it may be necessary to purge the cache data as a troubleshooting step.

 

Please be aware that where the app settings or support files are included in the cache (for example browser passwords), the purge action will remove these items and reset the app to its defaults. Once purged, caches are recreated as required.

 

As cache data is not backed up by iTunes and iCloud, this task creates a backup copy of the cache folders before purging begins. These time stamped backup folders can be found inside the regular cache directory. For computer maintenance, the backup folders created by the app are automatically deleted after 30 days.

 

The Task is queued until the user next logs off the computer after the scheduled execution time. The Task output contains the discovered cache and any actions.

 

Parameters

Field

Note

/Users/*/Library/Caches

User cache

/System/Library/Caches

System cache

/Library/Caches

Application cache

/private/var/folders

Temporary items