Guest Posted November 5, 2002 Posted November 5, 2002 Hi, I see that I need to setup each customer's cache in their own folder. This is what I have done: 1. setup cache folder under the admin folder chmod 777 2. in osc admin set cache to true 3. in osc admin set cache directory to /www/catalog/admin/cache/ Then, I got a bunch of errors when clicking on a product in their store. Am I suppose to put a define field in the admin/includes/configure.php? If so could someone please show me how to do this? I will need to do this for all my customers because, even though they have their own IP, if I set the cache of one to true and leave the /tmp/ folder in there their site goes to someone else's db. Thanks for help...it is greatly appreciated.
hobbzilla Posted November 6, 2002 Posted November 6, 2002 I am assuming that by "customers" you are meaning web-hosting customers and not store customers. Also, I'm pretty sure that you will need to use an absolute path for the cache dir ( /usr/domain.com/www/catalog/admin/cache/ ). Other than that.. it might help if you posted some of the 'bunch of errors' so we could understand what errors are occuring.
Guest Posted November 6, 2002 Posted November 6, 2002 Hi, Customers means store customers. When I changed the path to: /home/username/public_html/catalog/admin/cache/ the errors went away. I thought I had to set a "define" statement in the configure file but guess not. I just added a "cache" folder to admin chmod 777 and changed the path in the admin. If I don't set a cache folder for each store client and then enable cache in admin of one site, that customer's site shows another stores database.
Guest Posted November 6, 2002 Posted November 6, 2002 Spoke too soon... Did the same thing on another store and get this error: Warning: fopen("/home/bandtobo/public_html/catalog/admin/cache/categories_box-english.cache", "w") - Permission denied in /home/bandtobo/public_html/catalog/includes/functions/cache.php on line 22 Categories BABY HEADBANDS Baby Velcro Bows Headbands BOWS Baby Clippies Christmas Bows Christmas Clippies Everyday Classic Fun Bows Polk-A-Dot Bows Satin Bows Sheer Bows Velvet Bows DESIGN YOUR OWN Christmas Bib Design a Bib Design a Blanket Design a Bow Design a Burp Design a Tote EMBROIDERY Bibs Blankets Burps Denim Totes FREE DOWNLOADS PES DESIGN SETS A Special Set Fun For Kids Life Sayings Nobbie Neez Kids Redwork Religious School Misc Designs SPECIALTY GIFTS Embroidery Gift Baskets WHOLESALE Warning: fopen("/home/bandtobo/public_html/catalog/admin/cache/manufacturers_box-english.cache", "w") - Permission denied in /home/bandtobo/public_html/catalog/includes/functions/cache.php on line 22
hobbzilla Posted November 6, 2002 Posted November 6, 2002 You don't want a different cache folder for each store customer! I am still confused at what your term for customer here is.. You say one thing.. and then describe another. To clarify, you do NOT want a cache folder for each registered user of an individual store. However, you DO want a different cache folder for each instance of osCommerce on a webserver.. which means if you have more than one domain (a "customer" if you are a webhost) on a web server, you do not want to store the cache in /tmp/ as each store will write over the previous cache file and it will be a mess.
Guest Posted November 6, 2002 Posted November 6, 2002 my mistake...sorry about that. It is all fixed now. I put the cache directory under catalog instead of admin so hope that is the usual thing to do. Thanks again!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.