Skip to main content

Clear system caches (clear.caches)

Declaration

clear.caches()

Notes

Clear system caches. This call will freeze for a while, and all threads are blocked during the freeze.
This function may take a long time; force-stopping the script during execution may be slow (hard-kill).

Example

clear.caches()
--
clear.caches{no_uicache = true} -- Skip uicache (which is slow). You may run os.execute('su mobile -c uicache') instead.