W3 Total Cache
How to choose directory for disk caching (2 posts)

  1. PedroSena
    Posted 3 years ago #

    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


  2. laurionb
    Posted 3 years ago #

    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/pgcache

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • W3 Total Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic