def clear_kernel_cache_bash()

in ssiog/util.py [0:0]


def clear_kernel_cache_bash(log):
    try:
        # Attempt to clear the cache with sudo, but suppress password prompt
         subprocess.run(['sudo', 'sh', '-c', 'echo 1 > /proc/sys/vm/drop_caches'], check=True, stdout=subprocess.DEVNULL,