WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. PedroSena
    Member
    Posted 1 year 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

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. laurionb
    Member
    Posted 1 year 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

About this Topic