How do I clean or disable the ubuntu memory cache?

sync && echo 3 | sudo tee /proc/sys/vm/drop_caches

Source: software recommendation – How do I clean or disable the memory cache? – Ask Ubuntu