<- v5:userguide:learn_caching:introduction|Introduction To Caching ^ v5:userguide:userguide_index|List Of Tutorials ^ v5:userguide:learn_caching:memcached|Memcached Servers -> ~~NOTOC~~ ====== Disk Based Caching ====== To maximize the performance of disk-based caching systems, the cached data should be placed on the fastest available file system, in order of preference: * A memory based file system (ramdisk), examples: * A windows product such as [[http://memory.dataram.com/products-and-services/software/ramdisk/|RamDisk]] * A linux tmpfs type file system * An SSD Disk based file system * A alternative disk to the one holding the database Placing the cache files on a network drive is not recommended. ===== Configuration ===== The directory where the queries are saved is controlled by the variable [[v5:reference:adodb_cache_dir|$ADODB_CACHE_DIR]] /* * Set the value of the cache directory before establishing a connection */ $ADODB_CACHE_DIR = 'd:/queries';