In last cvs commit eaccelerator backend is BROKEN
here the patch
1) serialize should be called every time for argument when _put
2) Initial statistics - not working except memory usage (another issue latter about stats)

Comments

andypost’s picture

StatusFileSize
new2.78 KB

Forget to set statistics to 0

slantview’s picture

Status: Needs review » Fixed

Committed in DRUPAL-5, DRUPAL-6--1 and now in DRUPAL-7--1

andypost’s picture

Status: Fixed » Needs review
StatusFileSize
new1.26 KB

When flush() processes lookup array it checks for a value of key which is broken last commit!

Here the patch: original $expire strores in cache but if $expire is TEMPORARY we use $ttl = 180

So when flush() goes through lookup it cleans only TEMPORARY items - same as original cache.inc

andypost’s picture

StatusFileSize
new2.09 KB

Little bit optimizations: no need to call $this->key() better make it once and store result in $full_key

slantview’s picture

Status: Needs review » Fixed

Ok, fair enough. I posted this in last commit. I'll get it over into D7 and D5 branches as well.

andypost’s picture

Status: Fixed » Needs review
StatusFileSize
new1.69 KB

Suppose there's no need to recalculate $this->key($key)

much better to calculate it once and then use it, it brings some performance on often chache_get|set operations

patch against current CVS

slantview’s picture

Status: Needs review » Fixed

There is negligible performance improvements from this, and it doesn't actually have anything to do with eaccelerator backend fixes from the original post. If you want to file this in a new post I will think about it, but it seems like a waste. String concatenation is not a performance improvement I am too worried about. You are splitting hairs with some of these issues.

Spend some time fixing xcache or something else really useful that we need done so we can get a 1.0 release out. Write some more cache tests, or test on other platforms besides D6 and see if we can get this module more stable in other ways. Maybe consider how to get eaccelerator stats working?

Hope this doesn't come across wrong, but there is a ton more stuff to do before a 1.0 release which I was hoping to have out by the end of the year.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.