Daemonj Posted June 7, 2003 Posted June 7, 2003 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
Guest Posted June 7, 2003 Posted June 7, 2003 Good Morning Jim! Is the directory specified for the cache correct and have the right permissions?
Daemonj Posted June 7, 2003 Author Posted June 7, 2003 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
Guest Posted June 7, 2003 Posted June 7, 2003 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
Daemonj Posted June 7, 2003 Author Posted June 7, 2003 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
Daemonj Posted June 7, 2003 Author Posted June 7, 2003 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
Guest Posted June 7, 2003 Posted June 7, 2003 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...
Daemonj Posted June 7, 2003 Author Posted June 7, 2003 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
iIDC Posted June 30, 2003 Posted June 30, 2003 I'm having the same exact problem. If someone comes up with a solution, I'd like to know about it..!
Daemonj Posted June 30, 2003 Author Posted June 30, 2003 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
iIDC Posted June 30, 2003 Posted June 30, 2003 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
Daemonj Posted June 30, 2003 Author Posted June 30, 2003 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
iIDC Posted July 5, 2003 Posted July 5, 2003 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
Daemonj Posted July 5, 2003 Author Posted July 5, 2003 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
Guest Posted July 9, 2003 Posted July 9, 2003 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
Daemonj Posted July 9, 2003 Author Posted July 9, 2003 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
Guest Posted July 10, 2003 Posted July 10, 2003 I got another problem :( now, under Date Created - File not created. then some of the picture on the page doesn't appear.
Guest Posted July 10, 2003 Posted July 10, 2003 May be you can take a look at http://www.triplecomm.com/buyingclub/
Daemonj Posted July 10, 2003 Author Posted July 10, 2003 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
TheFinnisher Posted August 25, 2003 Posted August 25, 2003 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?
Daemonj Posted August 26, 2003 Author Posted August 26, 2003 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
Lance10t Posted September 2, 2003 Posted September 2, 2003 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
Guest Posted September 2, 2003 Posted September 2, 2003 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.