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
4
votes
3 answers

Which one would you choose ; XCache or APC?

I need a opcode-cache in my project. Also i will use for the datastore (mysql returned row) cache ? Which is the best for you and WHY ?
O..
  • 10,925
  • 5
  • 20
  • 8
4
votes
1 answer

APC and child pid XXXXX exit signal Segmentation fault

First I had xCache installed on server, I had xCache on lot of my servers but in this one after couple of days you go nothing except a blank page with this error in apache error log: child pid XXXXX exit signal Segmentation fault As far as I know…
Soroush Falahati
  • 2,196
  • 1
  • 27
  • 38
3
votes
2 answers

MAMP 500 Internal Server Error. MAC OSX php

No results from my php code on the MAMP just got a 500 internal server error. Also I don't know if has something to do with XCache installed, no idea what's it but comes with MAMP. Here is my code. Trying to display an image binary stored on my…
3
votes
3 answers

Do I have to change my source code to use xcache or other PHP opcode cacher?

I would like to use a PHP opcode cache, like APC and XCache. TO have benefit from this cachers, do I have to change something on my php code or just install one of them? I have seen there are APIs, do I have to use them? Thank you
Dail
  • 31
  • 2
3
votes
1 answer

PHPunit, Symfony2 & AWS SDK - Can't load APC or xcache

I've hit a roadblock with my phpunit functional tests. The AWS SDK requires APC, for some reason I can't get phpunit to load the extension. I'm not sure where I'm going wrong. The CLI is using the same ini file as MAMP Gregs-MacBook-Pro:HvH-PHP…
greg
  • 6,853
  • 15
  • 58
  • 71
2
votes
1 answer

xcache - What does enabling encoder/decoder/optimizer/assembler do?

What do the enable-xcache optimizer & encoder/decoder do? https://i.stack.imgur.com/FGqUm.png There is configure flags --enable-xcache-optimizer --enable-xcache-encoder --enable-xcache-decoder what do these do? Is --enable-xcache enough to maximize…
user121235
  • 37
  • 6
2
votes
1 answer

how to monitor XCache Performance

In phpinfo, there is a list of directives but they are not changing at all I see XCache is there by 'php -v' But how can I monitor the caching? Like how many scripts are cached or how much space/memory it used?
Hao
  • 6,291
  • 9
  • 39
  • 88
2
votes
2 answers

Where does PHP-XCache save its data?

I've recently installed PHP-XCache and set it up. I can also see files being cached in the admin panel. But something I do not understand is, where does it save all the data? Is it stored in a specific location or is it stored in an apache processes…
Cobra_Fast
  • 15,671
  • 8
  • 57
  • 102
2
votes
2 answers

Caching only frequently used data in PHP

I have a news site which receives around 58,000 hits a day for 36,000 articles. Of this 36000 unique stories, 30000 get only 1 hit (majority of which are search engine crawlers) and only 250 stories get over 20 impressions. It is a wastage of memory…
Joyce Babu
  • 19,602
  • 13
  • 62
  • 97
2
votes
1 answer

What does X-Cache: Hit from Backend mean?

I looked all over the internet but can't seem to find out what this means. I think it might be the cause of an error I'm currently getting in which the page refuses to update its references to certain files in my symfony application. I looked into…
Joseph Astrahan
  • 8,659
  • 12
  • 83
  • 154
2
votes
2 answers

Xcache var_size error

I am trying to use xcache with zend framework to cache the metadata from Zend_Db_Table_Abstract so that describe queries are only called once per table. When implementing xcache into my bootstrap and running the application, I am being presented…
ranhan
  • 25
  • 1
  • 3
2
votes
1 answer

Wamp not loading extension

I've installed an xcache extension for php, I've added the file in the ext folder php_xcache.dll then added this to php.ini: extension=php_xcache.dll then the extension was appeared in the extension list of wamp, I'am trying to activate it, the…
user2507316
  • 159
  • 4
  • 14
2
votes
1 answer

What is Xcache's maximum var cache size?

We would like to make use of xCache 3.0.3's variable prefixing in order to provide xCache's varcache on shared hosting. Our server has got 256GB of memory and we would idealy like to dedicate about 30GB to xCache. However anything over 1024MB and…
2
votes
1 answer

xcache only caching admin files

I am running xcache (shows as installed in phpinfo). When I view the admin page, the only php files being shown as cached as those in the admin folder (or those on the current page I am viewing). Does anyone have suggestions as to why files might…
1
vote
1 answer

Memory and performance with PHP as DSO, FCGID or SuPHP and xCache

This question might be a bit long and specific, but I have been attempting to find conclusive answers to the following questions for about a month now and I have yet to find decisive information. A question as specific as this is hard to generalize…
eleven59
  • 137
  • 4
  • 15