Hey Guys,
I'm using W3TC and I'd like to choose where the disk cache will be stored.
Is it possible ? If not, can you point me, in the code, where this is defined so I can change it manually ?
Thanks in advance
Hey Guys,
I'm using W3TC and I'd like to choose where the disk cache will be stored.
Is it possible ? If not, can you point me, in the code, where this is defined so I can change it manually ?
Thanks in advance
An easy way to change the directory is to create a link from the pgcache directory to where you want the pgcache to be.
For example, I moved the pgcache to be stored in-memory with these commands:
cd /var/www/html/wp-content/w3tc
sudo rm -rf pgcache
sudo ln -s /dev/shm/pgcache pgcache
sudo chown apache:apache pgcache
(paths with vary on your system)
The link looks like this:
$ ls -l /var/www/html/wp-content/w3tc/pgcache
lrwxrwxrwx 1 apache apache 16 Jul 29 21:13 /var/www/html/wp-content/w3tc/pgcache -> /dev/shm/pgcacheYou must log in to post.