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.

cache directory

March 24, 2012 11:38pm

Subscribe [3]
  • #1 / Mar 24, 2012 11:38pm

    nroptions

    46 posts

    I was just poking around my EE files and looked at the file “system/expressionengine/config/database.php”.  The value for ‘cachedir’ is

          “/........./public_html/xxxxx/expressionengine/cache/db_cache/”

    where “xxxxx” was the first version of how I renamed the “system” folder (I renamed it yet another time)
    and moreover the path hierarchy represents where “system” was before I moved it above the webroot.

    Just what kinds of problems am I in for?!  I don’t see how to manage this value within the EE Control Panel. Must it be changed, and if so, should I just edit the file directly?

    Thanks.

    Jonathan

  • #2 / Mar 25, 2012 12:28am

    Enviromed

    375 posts

    Just one of many options

    This excellent article advises dumping database.php altogether and going DRY

    Apply the DRY Principle to Build Websites With ExpressionEngine 2

    http://net.tutsplus.com/tutorials/php/apply-the-dry-principle-to-build-websites-with-expressionengine-2/

    Good luck

  • #3 / Mar 25, 2012 1:50am

    nroptions

    46 posts

    Thanks for the reference and I’ll look at it more carefully in the future.  But I’m not interested right now in modifying EE files; more interested in understanding the effects of having an incorrect path and how best to change it without causing any other side effects.  Did I miss a direct Control Panel setting?  Should I just simply correct the path within the file and assume everything else is okay.  Perhaps it just doesn’t matter.

  • #4 / Mar 26, 2012 1:35pm

    Shane Eckert

    7174 posts

    Hey nroptions,

    I am sorry to hear you are running into this problem.

    Check out the config.php file for the following lines.

    /*
    |--------------------------------------------------------------------------
    | 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'] = '';

    Set that there and tell me if this helps.

    Cheers,

  • #5 / Mar 26, 2012 1:43pm

    nroptions

    46 posts

    Actually I don’t use cacheing at this point, so I’m not sure there really is an issue.  My hosting site is at EngineHosting.com and they don’t particularly recommend it.  I had redefined the cachedir so it has a proper path, but I like your suggestion better.

    Thanks for the info and consider the thread closed.

  • #6 / Mar 27, 2012 7:50pm

    Sean C. Smith

    3818 posts

    Closing this thread at your request.

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

ExpressionEngine News!

#eecms, #events, #releases