Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 509 Vote(s) - 3.48 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HHVM Memcache integration

#1
I have a Drupal 7 website with Memcache installed, which is working fine on an Apache2 web server. Now I've replaced Apache2 with HHVM (HipHop) and got a real boost on performance.

The problem is that obviously Drupal can not interact with the Memcache server. Here is the error:

Notice: Use of undefined constant MEMCACHE_COMPRESSED - assumed 'MEMCACHE_COMPRESSED' in dmemcache_set() (line 44 of /.../modules/memcache/dmemcache.inc).

and of course nothing is stored in the Memcache.

I suppose that Drupal's Memcache module is using PECL's `Memcache:set()` which is not available in this newly installed HHVM. Is there any PECL-like installation for HHVM?

Thanks
Reply

#2
PECL extensions are unlikely to be compatible with HHVM, but "pure PHP" implementations might still work. It will be slower than something written in C, but the benefit of caching will probably outweigh any disadvantage in raw speed.

Someone already suggested that Drupal should include a pure PHP implementation in case the Memcache/Memcached extension is not available. The suggestion includes links to some of the alternatives, so check them out:

[To see links please register here]


I took a a quick look at [the first link](

[To see links please register here]

), and unfortunately the methods and constants don't seem to be 100% compatible with the PECL extension. But you might be able to extend the class, add some missing constants, and change the order of arguments to match the methods of the PECL extension.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through