memcached

where can I find php_memcached.dll php extension?

Spent a lot of time and I cant find a built version anywhere. please help. Note: please don't turn me to php_memcache.dll. I have this one. I'm looking for php_memcached.dll. ...

What's quicker: serving a static HTML file from the filesystem or from MemCache?

What's quicker: serving a static HTML file from the filesystem or from MemCache? Also, is there scaling and/or other concerns I should be aware of? ...

Are these memcached stats normal?

Are these stats normal? I have problems with my PHP products, so I want to know if these data are healthy stats STAT pid 2312 STAT uptime 5292037 STAT time 1253692925 STAT version 1.2.8 STAT pointer_size 64 STAT rusage_user 2600.605647 STAT rusage_system 9533.168738 STAT curr_items 1153303 STAT total_items 139795434 STAT bytes 435570863...

how to access memcache item created in php from java.

item is json serialized not binary so it is readable. I am getting problem while trying to get the item, with php the key is working fine but when i access the item using same key in java it fails I have only one server so server hashing should not be aproblem I have done a wireshark analysis and seems to be of no help except that: java...

Errno 0 in ruby memcached?

I'm getting "Errno 0. Key{< redacted >=>< redacted >}" when calling get in memcache pretty consistently (the < redacted >'s are mine). Here is the offending method in the memcache library. Any idea what could be going on? ...

How can caches_action be configured to work for multiple formats?

I have a rails action which responds to requests in various formats including AJAX requests, for example: def index # do stuff respond_to do |format| format.html do # index.html.erb end format.js do render :update do |page| page.replace_html 'userlist', :partial => "userlist", :obje...

json_encode and nested objects

I have nested PHP objects that I would like to save in memcache. Can I use json_encode(), json_decode() to store/retrieve the data from memcache? Implicit in the question is whether the json_encode() function is "clever" enough to introspect my objects without me having to explicitly define the structure. if json_encode() is not the wa...

Querying Memchached

First, a little background: I am using ATrack, an free google app-engine based torrent tracker, and I need some help integrating with it. I have pasted the (or what i can tell might be) relevant code here as i think its a little too long to put in this post. If you read carefully you'll see it check to see if the event is stopped. I n...

How to improve PHP performance more?

I've created PHP application for Facebook. It uses MySQL, Memcached and works on Lighttpd on Centos 2,6 Ghz and 2 GB RAM. it's basically one PHP file that after first run is cached and every next time it's served in 0,8 ms directly from Memcached. What more can I do to shorten this time? ...

How to increase PHP over HTML speed?

I have a PHP file that gets HTML from Memcached and serves it to user. When I test it like this: ab -n 1000 -c 100 http://website.com/test.php It does 22 requests per second. But when I put the same HTML to a html file and do this test: ab -n 1000 -c 100 http://website.com/test.html I get like 4500 requests per second. I n...

php_memcache.dll for PHP 5.3

Hello all, I recently setup a server using the latest version of XAMPP for Windows. With it came PHP 5.3. I'm now looking for a memcache.dll file that works with PHP 5.3 I've used some of the previous .dll files and recieved an error message: "PHP Startup: memcache: Unable t initialize module. Module compiled with module API=20060613...

How do I disable cache_money caching for certain ActiveRecord models

I tried doing the def index(*args); end; trick within the models I'd like cache_money to ignore, but to no avail. ...

Users take sessions of other users when sessions are stored in memcached (Rails)

Hello experts, I have a very weird problem, when storing my session in Memcached. From time to time some users takes the session of others. E.g. John, becomes logged in as Maria, Maria as Chris and so on. I use Rails 2.3.4, but the same problem has been happening with earlier versions of Rails. I use only one Memcache server and it's r...

cache_money only writing to memcached on creates and updates, and seemingly never looking in the cache for index/show actions

I seem to be having some extremely odd cache_money interactions. When I am on the console, and I create a new instance of a class and save it I see the cache misses and cache stores on my memcached console output. Then when the create finishes I see a bunch of cache deletions. If I then try to do any kind of find for the newly created...

Is this the correct way to install memcache for Python?

Install Memcached Install python-memcache library Start Memcache service Is that right? What else is there? ...

Why doesn't memcache work in my Django?

from django.core.cache import cache def testcache(): cache.set('test','I am putting this message in',3333) print cache.get('test') It just prints "None" This is in "ps aux": dovr 2241 0.0 0.8 57824 2144 ? Ssl 04:20 0:00 memcached -d -u root -m 3900 -p 11211 dovr 2247 0.0 3.7 83696 9800 ...

Memcache won't flush or clear memory

I've been trying to clear my memcache as I'm noticing the storage taking up almost 30% of server memory when using ps -aux. So I ran the following php code. $memcache = new Memcache; $memcache->connect("localhost",11211); $memcache->flush(); print_r($memcache->getStats()); This results in the output of ( [pid] => 4...

Atomic Update in MS Velocity

Does Velocity support server-side atomic updates ? I'm trying to see if i can port some code (based on memcached) which implemented a ring buffer based on memcache's INCR operation. ...

caching and avoiding cached content

I've got a widget with some user editable variables that will only very rarely be updated (likely only when the user sets up the widget). Rather than hitting the database, I cache the widget user variables via memcache. The widget content is changing regularly. I have it set-up so that when the user is creating or editing their widge...

"Pre-warming" the cache with a full, computationally complex page from my Rails app

Hey Everyone, Our initial page load is a beast in our Rails app. The great thing about it is the lack of page refreshes needed. The whole thing is very Ajax-y (and our designers made it look great!) There is only one problem: Initial page load is a monster. I have tweaked and prodded and have eeked out incredible speed improvements b...