what is caching & full page cache?
#1. Update package dependencies & install apache utils
#2 enable mod cache , cache disk expires headers modules
#3 edit the apache 2 config
#3.1 understanding cache variables
location & size of the cache
if cache size is set to toohigh (checking the request in cache slower than without implementing cache)
Location of the hdd/SSD or ram
read& write speeds
hdd 100mbs
SSD 500mb
SSD nvme 3gb/s
ram 16gb/s
if cache size is lesser, say 300mb,
it’s better to use ram, if available,
cost of 1gb ram in cloud hosting $10* per month.1
gb SSD $1*permonth.(checkout gce ,AWS, do price calculator)
cache TTL or expiry: based on how frequently content changes, for WordPress blogposts
1hour not a issue,
dynamic sites it should be very lower, in minutes also called as microcaching in nginx
#4 check syntax errors & restart the apache server
Cache Behind Web Server
front end cache serves without checking the server, php,MySQL, by linux sendfile () option.