• chmod 777 /code/wp-content/cache
    mkdir /code/wp-content/w3tc-config
    chmod 777 /code/wp-content/w3tc-config
    rm -rf /code/wp-content/cache/tmp

    this is the error we are getting. as per custom frame work we have desabled the writing access to wp-content folder, we have a soft link on wp-content folder that can be accessed as wp-content/uploads/ .. is there any settings in the plugin to mahe the above folder to create and update like chmod 777 /code/wp-content/uploads/w3/cache
    mkdir /code/wp-content/uploads
    /w3/w3tc-config
    chmod 777 /code/wp-content/uploads/w3/w3tc-config
    rm -rf /code/wp-content/uploads/cache/w3/tmp

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @janareddy

    Thank you for reaching out and I am happy to assist you with this.

    You can define the W3TC_CACHE_DIR in wp-config.php. We check and then default to:
    define( 'W3TC_CACHE_DIR', WP_CONTENT_DIR . '/cache' );

    I hope this helps!

    Thanks!

    Thread Starter JanaReddy Mareddy

    (@janareddy)

    after defining the given code define( ‘W3TC_CACHE_DIR’, WP_CONTENT_DIR . ‘/cache’ ); the error chmod 777 /code/wp-content/cache is gown away.

    below errors still exist

    Execute next commands in a shell:
    cp /code/wp-content/plugins/w3-total-cache/wp-content/advanced-cache.php /code/wp-content/advanced-cache.php
    mkdir /code/wp-content/w3tc-config
    chmod 777 /code/wp-content/w3tc-config

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @janareddy

    The constant is for the cache folder. You also need to define for other files/folders.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘can we change the cache folder path’ is closed to new replies.