for hosting many websites on one server, what is the best setting to set for the xcache.slots and xcache.var_slots? is 8k enough? and other settings like ttl? also what does readonly_protection really do?
on 31.01.2008 20:21
on 05.02.2008 15:06
dream wrote: > for hosting many websites on one server, > > what is the best setting to set for the > > xcache.slots and xcache.var_slots? is 8k enough? > > and other settings like ttl? > > also what does readonly_protection really do? focus on xcache.size xcache.var_size and check other settings only if you have trouble try to set xcache.size = 256M, and see xcache-admin page (install it first) after xcache is enabled for 1 hour or so. you'll know if the size is too big or small
on 05.02.2008 21:57
Also, if you're running apache, or fastcgi processes are common between
the sites, and/or you're not restarting often, consider flushing cache
periodically to prevent cache pollution
- with scripts from websites that are rarely visited
- or scripts that no longer exists on the disk (because they are
dynamically generated/removed by CMS or just simply not there, ie.
removed by developer).
#!/bin/sh
for w in www1 www2; do
for c in 0 1 2 3; do
wget -q --http-user=user --http-passwd=pass --post-data
"type=0&cacheid=$c&clearcache=Clear" -O /dev/null http://$w/xcache/
done
done

