1
vote
0answers
38 views

PHP define in config file does not update with new value

I have just installed a new system and set up the configuration file (DB settings). the conf' file has the following definitions: define('DB_USER', 'user'); define('DB_PASS', 'pass!'); It all works ...
0
votes
0answers
102 views

nginx wont cache images when they are read through php files

i have .php file wich is loading images to hide their location. Every images are correctly caching through this directive: location ^~ \.(jpg|jpeg|png|gif|ico|css|js)$ { expires max; ...
0
votes
1answer
31 views

How can I speed up the opcode cache response time?

I've got a moderately powerful VPS (quad core Xeon, 3GB ram, ssd) running Ubuntu 12.10, PHP 5.5.8 and Opcode cache is enabled. I'm using memcached, opcode cache and mod_pageSpeed. I'm monitoring the ...
0
votes
1answer
295 views

Nginx and Apache, how to configure proxy_cache?

I have Nginx installed as a front end proxy for Apache, where Apache is servicing PHP and Nginx is servicing static files. I'm having a problem configuring Nginx to cache the output from PHP into a ...
0
votes
2answers
231 views

Skipping nginx PHP cache for certain areas of a site?

I have just set up a new server with nginx (which I am new to) and PHP. On my site there are essentially 3 different types of files: static content like CSS, JS, and some images (most images are on ...
0
votes
0answers
43 views

eAccelerator causes the server to deliver gibberish data

I'm trying to integrate eAccelerator into my server infrastructure using the ELS script. But when I activate it, it causes the gibberish data (shown below) to appear instead of the real content. There ...
0
votes
1answer
356 views

PHP APC not working

I just installed APC with PHP Handler FastCGI. But it seems the Cache never working. if(($t=apc_fetch('key_4321'))===FALSE){ $t=time(); apc_add('key_4321', $t, 24*60*60); } echo $t; Almost ...
3
votes
1answer
135 views

Can Varnish/Nginx cache and store PHP pages after user visited?

Please assume that there is a PHP CMS that retrieves content according to IDs from database. So every time you visit this website it interacts with Database and Processes the PHP request. Can Nginx ...
0
votes
0answers
145 views

APC 99% Misses on Filecache

I have installed APC Cache in an Ubuntu + Zend Server enviroment. But it seems the APC does not Cache any File or does not use the cached files. After some Requests: File Cache: Cached Files 419 ...
0
votes
2answers
72 views

Faster caching method

I have a service that provides HTML code which at some point it is not updated anymore. The code is always generated dynamically from a database with 10 million entries so each HTML code page ...
0
votes
1answer
88 views

Prevent cacheing when using nginx reverse proxy cache

is there a way to prevent cacheing for some pages when using nginx reverse proxy cache. like sending some king of header from php? my version of nginx is 0.7.64 thanks in advance:)
4
votes
2answers
484 views

Can varnish cache files without specific extension or residing in specific directory

I have a varnish installation to cache (MANY) images that my service serves. It is about 200 images of around 4k per second and varnish happily serves them according to the following rule: if ...
1
vote
1answer
355 views

Showing outdated information when using WAMP as local server

I am running WAMP as a local server for the computers in the my network. The problem is that when I try to do any operations to the database from these computers, it seems as if they don't happen, ...
0
votes
1answer
56 views

Make server cache GET requests

Like this: Visitor (or user whatever) requests site.com/page1/ trough GET, then site.com/page1/ gets cached by the server, and all further requests of that page are served from cache, until a POST ...
1
vote
1answer
394 views

Sending HTTP headers by webserver or PHP?

It is equally possible to send HTTP headers by webserver or script. I use PHP on Nginx. Is there any different to send HTTP headers (such as Cache-Control) by nginx or PHP? Is it faster to send ...
4
votes
2answers
3k views

Chrome caching 302 redirects

I have a php script with is used to rotate banner images on a site. Under Firefox/IE page refreshes will make another request and a different image will be returned. Under Chrome, the request seems ...
0
votes
1answer
1k views

Memcache Master and slaves

I'm using memcached-1.4.5-1.el5 & memcache-2.2.6 as php extension and memcached-1.2.8-repcached-2.2.1 for replication. The above packages are installed on 4 servers. How can I do the following? ...
0
votes
1answer
806 views

MemCache-repcached compile error

I'm trying to install [memcached-1.2.8-repcached-2.2.1]( http://sourceforge.net/projects/repcached/files/latest/download?source=files) And I have the following error after running the make command: ...
0
votes
1answer
378 views

Connection errors when trying to use Memcache

I'm new to 'Memcache' but I've installed it and I think its' running, so far have I done the following correct? mkdir memcache wget http://pecl.php.net/get/memcache-3.0.6.tgz tar -xvfz ...
1
vote
3answers
1k views

APC PHP cache size does not exceed 32MB, even though settings allow for more

I am setting up APC (v 3.1.9) on a high-traffic WordPress installation on CentOS 6.0 64 bit. I have figured out many of the quirks with APC, but something is still not quite right. No matter what ...
2
votes
2answers
422 views

Memcache - Issues in a distributed environment with many nodes

I've had a quick look through the other similarly titled questions and none are particularly similar to the issues I'm currently having. Basically, we've had a multi node memcached ring running for ...
1
vote
1answer
114 views

Caching functions - fwrite vs memcache

Which will be faster and best option? Page will load faster with fwrite or memcached cached function? I need to store some functions in cache, they will not update very often, so need only to read it. ...
0
votes
0answers
61 views

a strange file-include behavior, probably some cache problem

I'm running a php web application, over apache (xampp, windows7) Recently, as far as I can see out of the blue, I encounter a strange behavior. For some reason my classes are not loaded correctly. ...
0
votes
1answer
1k views

Disable (ISP) Caching - WAMP

I have a server that I use to send emails. The emails have an image, that is used to track their being opened, that is in the form of <img ...
2
votes
1answer
224 views

PHP Opcode Cachers

Theres APC, XCache, and EAccelorator. how do they differ from each other and how do they each work? does APC and EAcc do cache to disk so EVERY php process can access it? while xcache works in memory ...
0
votes
1answer
196 views

url rewrite to make generated thumnails cache like static, a syntax question

this is a pain in the ass-problem!! Given: most proxies, do not cache resources with a "?" in their URL even if a Cache-control: public header is present in the response. To enable proxy caching for ...
0
votes
1answer
157 views

Strategy for caching

I have a 5 dedicated servers each running the same version of an application. I'm looking to massively step up our caching strategy to take some load off MySQL as this is our main bottleneck. All the ...
1
vote
1answer
277 views

php with apc+memcache+squid

I have a basic php installation. I want to install apc + memcached and squid to speed up the website. I have run into various resouorces regarding this, but one thing is not clear. Should php be in ...
2
votes
5answers
3k views

Why does APC (or similar) cause performance problem for shared hosting?

I'm using shared hosting, and I can't enable APC. There was a thread about that here, and the only reason suggested was for security (php-cgi vs mod_php). I queried the host, and they said it was due ...
0
votes
2answers
106 views

Install Xcache for dedicated

Hell I had try install xcache http://xcache.lighttpd.net/wiki/InstallFromSource But in step ~/src/xcache $ make ~/src/xcache $ su ~/src/xcache # make install My dedicated showed an error ...
3
votes
1answer
2k views

Error headers: ap_headers_output_filter() after putting cache header in htaccess file

Receiving error: [debug] mod_headers.c(663): headers: ap_headers_output_filter() after I included this within the htaccess file: # 6 DAYS <FilesMatch ...
1
vote
3answers
750 views

apc fragments and configuration

I have quite a bit of fragmentation. Is this a serious problem? How can I fix this? How can I make sure it doesn't happen again? Are there any other config recommendations for me? Thanks!
4
votes
3answers
156 views

What's a good resource for learning about scaling PHP applications?

I know PHP fairly well. But one aspect of PHP which I am fairly green in is caching, loading balancing etc. A lot of companies hiring PHP developers are looking for these high-use background, which ...
0
votes
2answers
487 views

What is the most efficient PHP accelerator for a shared hosting environment?

Just wondering if theres any performance benefits for using something like APC over eAccelerator (for PHP) on a shared environment.
1
vote
1answer
997 views

eAccelerator disk cache size

I am using eAccelerator to cache my PHP opcodes. I have the disk cache set to /var/cache/eAccelerator. How can I limit the size of the cache? It's already grown to 1.5 GiB and keeps growing!
27
votes
5answers
19k views

Which PHP (opcode) cache one should use and why?

I keep hearing about some PHP (opcode) caches like - APC, XCache, Memcache, eAccelerator, etc. But I couldn't ever figure out how to go about choosing one. Apart from performance benefit, which a ...