ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Cannot change cache path via config file

January 22, 2012 9:34am

Subscribe [3]
  • #1 / Jan 22, 2012 9:34am

    Favio

    4 posts

    This question may be related to a resolved thread.

    In the config.php file you can find the following setting:

    /*
    |--------------------------------------------------------------------------
    | Cache Directory Path
    |--------------------------------------------------------------------------
    |
    | Leave this BLANK unless you would like to set something other than the default
    | system/cache/ folder.  Use a full server path with trailing slash.
    |
    */
    $config['cache_path'] = '';

    However, when I set a new path like ‘/home/www/ee_files/cache/’, files are not written to the new destination.  For example, the “ee_version” directory is still created at system/expressionengine/cache, as well as the Channel Images temp directories.

    Is this expected?

    Thanks!

     

  • #2 / Jan 22, 2012 6:03pm

    stinhambo

    1268 posts

    Did you set the cache folder permission (CHMOD) to 777?

  • #3 / Jan 22, 2012 6:05pm

    Favio

    4 posts

    Yes.

    Have you used that setting successfully before?

    A quick grep through EE’s source code reveals that they are not using that config item for the ee_version check. :S

    Oh, I’m using latest EE2 (2.3.1)

  • #4 / Jan 22, 2012 6:44pm

    stinhambo

    1268 posts

    I might leave it to tech support as I’ve never had to change it.

  • #5 / Jan 23, 2012 12:07pm

    Shane Eckert

    7174 posts

    Hello Favio,

    Thank you for posting in the ExpressionEngine forums.

    I talked with our dev team and was told that the cache path cannot be set by the variable “cache_path”.

    We generally do not recommend editing the variables below this line in the config file.

    // END EE config items

    Most of them are not recognized by ExpressionEngine and editing others can potentially break ExpressionEngine.

    I hope that helps!

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases