Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Creating cache file


Daemonj

Recommended Posts

Posted

After enabling cacheing, what does it take to create the actual cache files that are listed in Admin ~ Tools ~ Cache.

 

When the above page says "File does not exist", clicking reset does nothing. So how do I generate the file?

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

Good Morning Jim!

 

Is the directory specified for the cache correct and have the right permissions?

Posted
Good Morning Jim!

 

Is the directory specified for the cache correct and have the right permissions?

Hello Kim :)

 

Yes the directory exists and both it and tmp are 777 and the cache entry ends with the '/' as well.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

I did a little search and came up with this:

 

ToolCrazy wrote:

 

OK go in to Admin->Configuration->Cache and where it say cache dir enter your full server path.

 

Example:

 

/var/www/html/tmp

Posted

Yep, that is what I have. :)

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

Will the files be generated upon the first page request, do I need to edit a product, something else?

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

Well PIFFLE! We aren't having much luck with this one......It's been so long since I set mine up I can't remember if I had to do something special...

Posted

I found the problem.

 

Now I need to know why it was done that way so that my fix does not break something.

 

In the includes/column_*.php files, the cache control structure is:

  if ( (USE_CACHE == 'true') && !defined('SID')) {

so why is the cache not used when a SID is present?

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

  • 4 weeks later...
Posted

I'm having the same exact problem.

 

If someone comes up with a solution, I'd like to know about it..!

Posted

The only solution is to not have a SID present (i.e. postpone a user from logging in until as late as possible).

 

If your site is one that requires logging in to access it then you cannot use the cache feature. :(

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

There's no logging in to access our site.

 

If you have found a way to make this work, please let me know.

 

Thanks,

 

Thomas

Posted

As I said in my previous post, I removed the create an account/login opportunity from the main page.

 

New users and some returning users will browse the site using the cache.

 

The returning users that immediately login will not receive the benefit of the cache but that is okay because they are a smaller percentage of my total visitors.

 

If you are not logged in and your cache files are not being generated, verify that your cache folder location is correct and that it has 777 rights.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

I finally got mine working... with all of the other stuff I'd done, I'm not absolutely sure what was the solution, but..

 

I renamed 'cache' to 'Cache' and added the full path in Congifuration>>Cache>>Cache Directory (/home/sites/...../Cache/

 

Then I set the permissions to 777..

 

The Tools>>Cache Control started showing my files shortly after that..

 

Thomas

Posted

The folder name needs to match the entry in Admin ~ Configuration ~ Cache ~ Cache directory exactly. If the entry there is capitalized then the folder will need to be as well.

 

Be sure that the cache folder is outside of your document root (e.g. public_html) folder. ;)

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

Hi,

 

I got problem on enabling my cache.... i got message says, Cache Directory: /tmp/ only without any action of files captured?

 

Please HELP.

 

Regards,

 

Jovi

Posted

Go into Admin ~ Configuration ~ Cache and set the cache directory to the parent folder of your web documents. Be sure that folder exists (if not, create it and it has 777 rights). Then enable cache.

 

Then load the front page of your catalog (without being logged in) and your cache files will be created.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

I got another problem :(

 

now, under Date Created - File not created.

 

then some of the picture on the page doesn't appear.

Posted

Go into Admin ~ Tools ~ Cache and make sure the folder is getting found and is writeable/readable by osC.

 

Make sure that you are not logged in when you visit your catalog's main page.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

  • 1 month later...
Posted

Do I need to have the categories box and manufacturers box on the front page to start a cache?

 

I am seeing a cache created for "Also Purchased Module" but none for Categories box or Manufacturers box. Currently I display none of those two in my front page as I use the Coolmenu for navigation.

 

I actually tried to temporary put these two boxes in my left column but I didn't see a cache build up...

 

hmmm?

Posted

Yes, the cache file is not built until the first request is made. Therefore, if you do not display either of those boxes then the cache is not built for them.

 

As it turns out, your store has to have a lot of categories and products before the cache is actually of any benefit.

 

Enabling GZip compression with a setting of 1 is more beneficial than the cache.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

sorry for my english :oops:

 

Enabling GZip compression with a setting of 1 is more beneficial than the cache.

in admin panel written

Use this compression level 0-9 (0 = minimum, 9 = maximum).

so and why did you write that level 1 is more beneficial ?...

if it is lowest compresion level? it transfers larger data

is it your mistake or I didn't get how it works :?:

pls explain

Posted

There is little benefit of increasing compression from 1 to 9. In fact, some of those compression levels might go backwards (I've seen examples of compression level 4 being bigger than 3 on certain inputs). More importantly, the small bandwidth gains you might get are eaten up by increased processing time (9 is much more process intensive). Frankly, web pages just aren't big enough to take real advantage of 9th level compression.

 

Btw, you missed the comparison he was making. You are comparing gzip 1 to 2-9, while he was comparing gzip 1 to using a cache.

 

Hth,

Matt

Archived

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

×
×
  • Create New...