Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

What is the benefit of turnin of Cache?


connectus

Recommended Posts

Hi there

I am new at this, was going through the manual and reach the cache setting under

Admin - Config - Cache.

 

It recommends that cache should be turn on if I get the following error message

 

"Whenever your cache directory is not setup for your store you will get a

pink error message at the top of the store screen like this:

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

"

 

The installation does shown any error above.

 

Questions:

1. Do I still need to turn on the Cache?

2. What is the benefit of having the Cache On vs Off?

 

Thank

W

Link to comment
Share on other sites

On a shared server you may be using a shared cache folder, and this is one of the causes of seeing other website's Categories on your website's pages. Best to avoid it by not using the Cache feature unless you have your own dedicated or virtual dedicated server.

 

Vger

Link to comment
Share on other sites

  • 1 month later...
Hi there

I am new at this, was going through the manual and reach the cache setting under

Admin - Config - Cache.

 

It recommends that cache should be turn on if I get the following error message

 

"Whenever your cache directory is not setup for your store you will get a

pink error message at the top of the store screen like this:

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

"

 

The installation does shown any error above.

 

Questions:

1. Do I still need to turn on the Cache?

2. What is the benefit of having the Cache On vs Off?

 

Thank

W

 

 

If I give too much info here bear with me-- I saw several unanswered threads when I came looking for an answer to the same problem, discovered the resolution and I'm going to cut and paste this resolution into each of these threads so if I overexplain forgive me-- take what you need and go ;)

 

In the OSC admin tool under 'Configuration' select 'Cache'. Set 'Use Cache' to true and set the 'Cache Directory' to THE FULL PATH to your cache directory. That means the full path from the root of the file system on your server. You can pull this most of this from your /catalogs/includes/configure.php file-- the 'DIR_FS_CATALOG' has the path you need, just add 'cache/' to the end. So in the example below:

 

define('DIR_FS_CATALOG', '/home/myhostingacct/public_html/catalog/');

 

Add 'cache/' to the end making it '/home/myhostingacct/public_html/catalog/cache/' (without the singles quotes)

 

Plug this into the 'Cache Directory' entry and save it. Make sure there there are CHMOD 777 (full read/write access for all) permissions to the cache folder and you should be golden.

 

TESTING

------------

 

From the Admin tool go to 'Tools' and select 'Cache Control'. That pesky pink error message at the top should be gone now. If not, something is wrong. Check the path and check the permissions, that's all that could be wrong.

 

Notice that the file 'date created' for the three cache files is 'File does not exist'. Now browse your site, click a couple of the categories, and select a manufacturer from the box. Then refresh the 'Cache Control' page. You should see that they are updated now. If so-- it's working... have a nice day!

 

 

 

BTW- I don't see how setting this static full path could pull data from anyone else's cache...

Jerry a.k.a. 'FoundSoul'

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...