Page downloads as file in Chrome

I'm looking to see if I could get pointers in where to look to solve this issue. Issue In Chrome, viewing the blog http://www.bitesizeirishgaelic.com/blog/ in Chrome v21, the page downloads as a file "download", rather than opening normally. The rest of the site on the same server loads fine in Chrome. All pages load fine in Firefox. Background I suspected that it was something to do with the APC caching for Apache, and/or WP Super Cache. However, after disabling both, …
Category: Web

Caching: APC vs APCu vs OPcache

I'm a bit confused and I'd like to know the difference between the APC, APCu, and OPcache. I'm using: WHM VPS Apache 2.4 PHP 5.5 Fastcgi Processor 6 vCores RAM 8 Gio
Category: Web

Running code before object-cache.php runs

I want to polyfill some functions before object-cache.php runs. I have PHP7 and APCu installed. However, W3 Total Cache is using apc_* functions, not apcu_* functions. W3 Total Cache's object cache runs using object-cache.php, which is loaded before any plugins run. How can I run custom code before W3 Total Cache runs without modifying WordPress core? I also can't use PHP's auto_prepend_file because WordFence is using it. Here is the code I want to run: if (function_exists('apcu_add') && !function_exists('apc_add')) { …
Category: Web

Wordpress performance - W3 Total Cache and memcached/APCu

I have freshly installed Wordpress, Nginx with PHP-FPM, W3 Total Cache (plugin), memcached and APCu on PHP 5.5. I will run a benchmark on my local mac against the aforementioned AWS server using Apache Bench (ab), I get a consistent 240 Requests Per Second (RPS) with test.com poisoned to this server, or around 40 million hits per day according to blitz.io. Keep in mind this is with the default Wordpress theme. This performance is great and outperforms almost every (not …
Category: Web

Updating WordPress or plugins causes site issues (due to API, I think)

I have a problem with all of the sites I host on my server. Whenever someone updates WordPress of plugins, I manually have to restart Apache to get things to work properly. Should the update process clear the APC caches itself, if if so, any ideas what could cause this to not work correctly? I've checked the latest victim site, & there's not caching plugin on this site, for reference,
Category: Web

How to enable Zend Optimiser+ with Batcache

I am using Batcache with APC Object Cache Backend so far. A lot of posts on internet claiming that using Zend Optimizer instead of APC would reduce CPU and memory usage. I could enable Zend Optimizer on my server. But I haven't found a plugin or workaround to make Batcache works with Zend Optimizer. Is that a "Zend Optimizer Object Cache Backend" for Batcache? How to make Batcache use Zend Optimizer? Thank you.
Category: Web

After having installed APC Object Cache Backend transients stopped working

My understanding is that once you enable the persistent object cache, your transients are no longer stored in wp_options but in the cache. Once I installed Mark Jaquith's APC Object Cache Backend, calls to get_transient( $key ) no longer return the transient in question. Where should I look next? EDIT: One very important piece of evidence is that AS SOON as I renamed the object-cache.php file, everything started working again.
Category: Web

How to find out if an wp-admin action edited a file?

I want to create a small plugin to automatically purge the APC opcode cache after specific actions in the Wordpress admin interface. This is necessary if e.g. apc.stat is set to 0, as a change to a file then doesn't reset its cache value in the opcode cache and so calls will use the old, cached, out-of-date file. Total debug nightmare if you forget to clear the cache manually. Is there an easy way to find out if an action …
Category: Web

Speed up MU Wordpress on Apache VPS?

I have a wordpress multisite 3.6 with 1 main site and 5 subdomains(with mapping domains) I am tried to make it faster, i install the W3 Total Cache plugin i add on my apache the APC 3.1.13 yum install httpd-devel pecl install apc Enable internal debugging in APC [no] : no Enable per request file info about files used from the APC cache [no] : no Enable spin locks (EXPERIMENTAL) [no] : no Enable memory protection (EXPERIMENTAL) [no]: no Enable …
Category: Web

APC fragmention woes on Apache AWS EC2 Small instance with WordPress and W3TC

Asked this question at serverfault, and got confirmation that W3TC is most likely causing the issue, but several of my more W3TC/Wordpress specific issues weren't able to be answered. Reposting here as this community had hopefully answer those better. I emboldened them below.* AWS EC2 Small instance, Apache 2 running WordPress and W3TC. Within an hour, my APC fragmentation hits 100%. My APC settings are: apc.enabled = 1 apc.shm_segments = 1 apc.shm_size = 100M apc.optimization = 0 apc.num_files_hint = 512 …
Category: Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.