开发者

How to prevent memcache storing an incomplete page when someone clicks away prior to page load completion?

I'm fairly new to memcache so apologies if this is an obvious one. I have looked through the memcach开发者_运维百科ed documentation and tried various Google searches but to no avail.

The setup :

  • Drupal 6.19
  • Memcache API and integration module
  • Authcache module
  • Centos 5
  • Memcached 1.2.6

If you need further information let me know.

The situation :

Memcache is certainly running, bins are being filled and page load times are incredible. However, I noticed only recently, when doing some testing that when I clicked on a link before the page had finished loading memcache stores the current page state in memory. So, when the next user comes along he sees a half formed page that I was too impatient to wait for.

Your response might be to sort out my page loading - which I'm looking in to. But I would like to solve this one as well. This means that if a user with a particularly slow connection is the first one to visit a page then he / she might click away and store an incomplete page for everyone else to see.

I appreciate any advice you can offer. Even if it is pointing me to an obvious resource I've overlooked.

Thank you


Try ignore_user_abort(true); http://www.php.net/manual/en/function.ignore-user-abort.php


Are you sure this isn't a browser cache issue? This doesn't sound like a memcached issue at all unless you've got a weird setup.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜