12

Just found this awesome function in the old commits.

def clean_cache():
'''
This function cleans the stored cache in every update. Make sure to call it before every feature addition.
'''
print 'Cache is cleared. '
return

Comments
  • 2
    I laughed way too hardXD
    BTW, this reminds me of that random function:
    def dice():
    print(4) #guaranteed to be chosen by fair dice roll.
  • 1
    For a linux:
    sudo echo 3 | sudo tee /proc/sys/vm/drop_caches && sudo sync

    Just found that out a few days ago after a few months with a script that remounts disks and restarts daemons on 10 servers :s
Add Comment