Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cache Control


Irin

Recommended Posts

Posted

I have an Error in my Tools --> Cache Control. It says:

Error: Cache directory does not exist. Please set this Configuration->Cache.

Cache Directory: cache/

 

When I go to Configuration --> Cache, I have the following settings:

Use Cache: true

Cache Directory: /var/www/shop/cache/

The cache/ folder has a 755 permission.

 

I checked the Tools --> File Manager and the link to the cache folder is: /var/www/shop//cache (note the 2 //).

 

Anyway, I tried both links and I'm still getting the error message. What's wrong?

 

Any help is appreciated. Thanks.

Posted

In your Admin-->Configuration-->Cache make sure the extra " / " is not in the Cache Directory setting.

 

If its not there try checking in your admin/includes/configure.php.

Posted

I could be wrong here but that path you show does not appear to be correct.

 

print out to screen your $DOCUMENT_ROOT and see if indeed the cache directory in in the path.

 

99 percent of the time -> maybe 99.9 percent -> your issue will be an incorrect entry in configure.php

How do you know when you know what you want to do for the rest of your life?

Posted
I could be wrong here but that path you show does not appear to be correct.

 

print out to screen your $DOCUMENT_ROOT and see if indeed the cache directory in in the path.

 

99 percent of the time -> maybe 99.9 percent -> your issue will be an incorrect entry in configure.php

Here is what I have in my admin/includes/configure.php:

define('DIR_FS_DOCUMENT_ROOT', '/var/www/shop/');
define('DIR_FS_CACHE', 'cache/');

I think I got it working. I just changed the DIR_FS_CACHE entry in configure.php to:

define('DIR_FS_CACHE', '/var/www/shop/cache/');

 

Now, when I go to Cache Control, it shows the following:

Categories Box 04/14/2009 22:54:02

Manufacturers Box File does not exist

Also Purchased Module 04/14/2009 23:22:05

Cross Sell Products 04/18/2009 00:17:07

Cache Directory: /var/www/shop/cache/

So, I guess it just doesn't take the Configuration --> Cache settings into consideration, just the entry in admin/includes/configure.php.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...