Questions tagged [xcache]

XCache is an open-source PHP opcode cacher, meaning that it accelerates the performance of PHP on servers.

XCache is a open-source PHP opcode cacher, which means that it accelerates the performance of PHP on servers. It optimizes performance by removing the compilation time of PHP scripts by caching the compiled state of PHP scripts into the shm (RAM) and uses the compiled version straight from the RAM. This will increase the rate of page generation time by up to five times as it also optimizes many other aspects of PHP scripts and reduce server load.

The XCache project is lead by mOo who is also a developer of Lighttpd.

86 questions
105
votes
12 answers

apc vs eaccelerator vs xcache

Im doing research on which one of these to use and I can't really find one that stands out. Eaccelerator is faster than APC, but APC is better maintained. Xcache is faster but the others have easier syntax. Anyone have recommendations on which to…
Galen
  • 29,976
  • 9
  • 71
  • 89
36
votes
4 answers

Is there any compatible memory cache for PHP 7?

I would like to use PHP 7. However there seems to be no option for key-value memory caching. APC is discontinued. XCache will not be available for PHP 7 for some time. Is there an available alternative for PHP 7? Or is there a way to use PHP7's…
Frodik
  • 14,986
  • 23
  • 90
  • 141
22
votes
2 answers

Difference between Memcache, APC, XCache and other alternatives I've not heard of

At work, we've recently started designing an application to me "large scale" (we're engineering for the potential to serve up many millions of hits a day). One of the senior devs and the sysadmin have set up memcache on the server. As I…
Alex C
  • 16,624
  • 18
  • 66
  • 98
13
votes
3 answers

FastCgi vs PHP-FPM using Nginx web server

I am using this tutorial to install nginx, php and mysql on my new web server. The tutorial is using ISPConfig 3 and there is an option to whether use FastCgi or PHP-FPM. I am wondering which is better of the two. In terms of performance and speed,…
jaypabs
  • 1,519
  • 10
  • 43
  • 62
8
votes
1 answer

using both Opcache and Xcache

I'm just wondering is it stupid to use both Xcache 3 with Zend Opcache at the same time to cache PHP files? I know that both do almost the same job, but not sure if that would make any difference on the performance and speed. I want to speed up my…
Digital site
  • 4,431
  • 12
  • 48
  • 72
7
votes
4 answers

Opcode (APC/XCache), Zend, Doctrine, and Autoloaders

I am trying to use either APC or XCache as an opcode to cache my php pages. I am using it with Zend and Doctrine and it's having a problem with the autoloader. If I try with APC, I get the following: Fatal error: spl_autoload() [
Chris Williams
  • 11,647
  • 15
  • 60
  • 97
6
votes
3 answers

HipHop instead of XCache?

Would it make sense to switch to HipHop instead of XCache? Is HipHop ready for primetime or should we wait several months before implementing it? Edit: we are interesting in testing the configuration on a server running vBulletin.
Marco
  • 4,345
  • 6
  • 43
  • 77
6
votes
5 answers

PHP: Using APC as general cache, XCache as opcache, possible?

I'm really intreagued by the general cache aspects of APC and want to use it in my code (this I know how to do, this is not the problem). However, I'm using XCache as opcache now and want to continue to do so since I have it tweaked "just right" for…
Adergaard
  • 61
  • 1
  • 2
6
votes
1 answer

xcache how does it work? code coverage? clogs? OOMs?

I've searched all over the web for documentation including on the XCache website. I'm new to PHP opcode caching and XCache. I'd like an explanation of how XCache works. I know that it stores compiled php code so that it doesn't need to be…
Leo
  • 69
  • 1
  • 3
4
votes
1 answer

Fatal error: Call to undefined function xcache_isset()

How do I install the XCache extension on Windows + WAMP + PHP 5.3 ? I copied the extension dll in the extensions directory, and added the line in php.ini, then activated it trough the WAMP interface. The extension appears to be active, but I still…
Alex
  • 66,732
  • 177
  • 439
  • 641
4
votes
1 answer

json_encode - PHP gives uncomplete json string

First my Setting: PHP 5.3.2 - with Suoshin and xCache lighttpd/1.4.26 My Code is too much to Post it here. I will discribe it. File x.php is loading some PHP - Classe, init them, executes some functions -> getting an Result array. If I print_r…
MnomrAKostelAni
  • 458
  • 1
  • 4
  • 13
4
votes
1 answer

Does anyone know if xcache functions are atomic?

I'm wondering which xcache functions are atomic. I know that xcache_inc() and xcache_dec() are both atomic. I dont know if xcache_get() and xcache_unset() are atomic.
incognito2
  • 1,024
  • 3
  • 13
  • 20
4
votes
2 answers

Missing function names when opening CacheGrind file in WinCacheGrind

Hell All. I installed XDEBUG on a apache/php server as a ZEND module. It outputs profiling files but the output does not contain function names, just numbers. I does not look like other cachegrind output files. My files have numbers instead of…
4
votes
5 answers

Does CakePHP have support for APC, XCache and others?

Does CakePHP have support for APC, XCache and others?
JPro
  • 6,292
  • 13
  • 57
  • 83
4
votes
1 answer

Configuring xcache cacher

I've just setup xcache on a vps server. I have the admin section running and it is showing that xcache is running. I am however a bit unsure about some of the settings - the documentation doesn't dwell very far into what each setting mean. Notes…
Ben
  • 20,737
  • 12
  • 71
  • 115
1
2 3 4 5 6