Jump to content

motorcity

Members
  • Posts

    31
  • Joined

  • Last visited

Everything posted by motorcity

  1. I'm trying to change the vendors_id based on some other conditions in oscommerce shopping_cart.php (php version 5.2.9) Here's the output from <?php print_r($products); ?> Array ( [0] => Array ( [id] => 1 [name] => 07261/07561 Tool Holder 24in [model] => 07261 [image] => 0010041.JPG [price] => 15.0600 [quantity] => 10 [weight] => 4.1700 [length] => 26.750 [width] => 9.750 [height] => 5.500 [ready_to_ship] => [ups_shipable] => 1 [shelf_pack] => 6 [velocity_code] => A [inventory] => 143 [final_price] => 15.06 [tax_class_id] => 1 [vendors_id] => 6 [vendors_name] => 29 - 50 UI [attributes] => ) [] => 15 ) $switchme = ($products['vendors_id']); $products[$switchme] = '15'; I've tried a bunch of things here that didn't work. As I understand it the first array allows purchase of multiple items, I'm never getting into the right spot. Without the above code the printout looks like this; Array ( [0] => Array ( [id] => 1 [name] => 07261/07561 Tool Holder 24in [model] => 07261 [image] => 0010041.JPG [price] => 15.0600 [quantity] => 4 [weight] => 4.1700 [length] => 26.750 [width] => 9.750 [height] => 5.500 [ready_to_ship] => [ups_shipable] => 1 [shelf_pack] => 6 [velocity_code] => A [inventory] => 143 [final_price] => 15.06 [tax_class_id] => 1 [vendors_id] => 6 [vendors_name] => 29 - 50 UI [attributes] => ) )
  2. That sounds so logical that it almost hurts. Thanks. ~for the confirmation. I'm going back to the author of this code. Been meaning to for awhile. I'll post back here if anyone is interested. Obviously memcache is a fairly rare bird, and issues with it are even more rare.
  3. Using the program noted above clicking on "variables" it lists by slab; Item count, Age, Evicted I find 21 slabs which vary from item counts of 1 to as many as 12000. Also quite random is the age, anywhere from a day to multiple weeks. (current uptime is 2 weeks). Every slab has "No" for evicted. Shorter answer, I don't find a rate for eviction.
  4. My thinking right along has been expecting much better hit to miss ratio. I'm currently reporting request rate (hits. misses) = .21 cache requests/second hit rate = .09 cache requests/second miss rate= .13 cache requests/second set rate = .13 cache requests/second Cache used = 43.2MBytes Cache size = 64MBytes Do I increase the cache size? Or something else?
  5. Hello, I started using memcached about 2 1/2 months ago. It's being used to do url rewrite and cache the results. I'm using http://pecl.php.net/package/memcache to monitor what's going on. These are pretty typical results; hits = 40.6% misses = 59.4% free = 32.5% used = 67.5% I'm on a pretty good vpn with a huge database and moderate to low traffic. Any thoughts on this?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.