maggiemk Posted June 27, 2006 Posted June 27, 2006 Dear All, Would anyone help me to solve this problem, please? I have followed the osCommerce 2.2 Milestone 2 Update 051112 Documentation to set up Cache. The path is correct, and there is no warning messages before creating three blank files into my cache directory called: categories_box-english.cache manufacturers_box-english.cache also_purchased-english.cache The manual said if the "file does not exist" messages still exist then I have to set them up, so I did it and the warning messages appeared. I am a beginner, so I don't know that what is the function of Cache? It would be so kind of you if you could let me know how to deal with this problem and what is the function about Cache. Kindly Oblige, Thanks in advance. Maggie P.s. I copied the warning messages as below: Cache Control Warning: filemtime(): Stat failed for /home/xxx/public_html/catalog/xxx/admin/cachecategories_box-english.cache (errno=2 - No such file or directory) in /home/xxx/public_html/catalog/xxx/admin/cache.php on line 95 Categories Box 01/01/1970 01:00:00 Warning: filemtime(): Stat failed for /home/xxx/public_html/catalog/xxx/admin/cachemanufacturers_box-english.cache (errno=2 - No such file or directory) in /home/xxx/public_html/catalog/xxx/admin/cache.php on line 95 Manufacturers Box 01/01/1970 01:00:00 Warning: filemtime(): Stat failed for /home/xxx/public_html/catalog/xxx/admin/cachealso_purchased-english.cache (errno=2 - No such file or directory) in /home/xxx/public_html/catalog/xxx/admin/cache.php on line 95
choosealogin Posted June 27, 2006 Posted June 27, 2006 To answer the question about the cache, the purpose is to keep cached data in files so as to avoid constantly calling on the database for things that don't change very often. The category box can be a big load on the db w/o caching, if you have a lot of categories/subcategories, etc. Before I start, I have seen it recommended numerous times on this board, to just NOT use the "cache" when you are on a shared server (any typical $20/month hosting account is "shared"). What happens, is when you use the default cache folder /path/to/your/tmp it's actually not only "your" tmp folder ...if there happen to be other osc stores hosted on that server, their cache can get mixed up with yours...so if you sell greeting cards you can find adult toys linked from your category box someday. I've seen it happen. :o I personally believe it's OK if you don't use the default location and directory name (tmp). That's all I have to say on that, as I don't have that much of a grasp on the whole concept...and I don't want to excite anyone with any "bad" advice :'( So with that said please do some research. :thumbsup: Now, I think you should delete the cache files you made. Admin isn't really the place for the cache folder (see above). I think your path is wrong. There should be a little bit more to it. Look in admin --> tools --> server info and use "find" to locate "document root". It could be something like /mnt/partition-dev-sdb3/home/yourdomain/public_html ...usually there's a couple more directories above "home"...and you want to start all the way at the top (/mnt/ in my case) when you specify the "path to cache" in your admin panel. You'll need to make a folder in the location you specify. In my case, I put it at /mnt/partition-dev-sdb3/home/unique_name/
maggiemk Posted June 28, 2006 Author Posted June 28, 2006 Hi Mark, Thanks so much for your information. It is very useful. Maggie
Bieleke Posted August 21, 2006 Posted August 21, 2006 Hi Mark, Thanks so much for your information. It is very useful. Maggie If the "file does not exist" messages still exist, upload via FTP, three blank files into your cache directory called: categories_box-english.cache manufacturers_box-english.cache also_purchased-english.cache If there are more languages, create more files replacing engish with language name and upload. Keep in mind there is a big bug in oscommerce regarding cache. When you activate it you can bet on it your categories will desapear in the left upper corner. No idea why, but gonna post a support message in this forum. Anyway, creating the blank files and upload them will solve your error-problem, but a new problem will arise... disapearing of the categories box in the upper left corner. So my advise.... until that bug is fixed leave caching off. Best Regards, Patrick
Recommended Posts
Archived
This topic is now archived and is closed to further replies.