How to save comment name email url fields?

This is most likely side effect of your caching plugin. WP stores this information in user’s cookies and tries to read them to fill in the form. However since it happens on server side it needs to output info into a page’s source. So if page is being served from cache it just doesn’t work. … Read more

Caching/preloading files on Linux into RAM

vmtouch seems like a good tool for the job. Highlights: query how much of a directory is cached query how much of a file is cached (also which pages, graphical representation) load file into cache remove file from cache lock files in cache run as daemon vmtouch manual EDIT: Usage as asked in the question … Read more

opcache_reset on plugin/theme/core update

Several comments just in case, you probably should check that the PHP version is 5.5 and above before calling the function (or check for its existence, not sure if an equivalent function existed in the original APC under the same name) You priority is too high. You actually want to call it after all other … Read more

Cloud flare, cache, minify question [closed]

In general no, there is no advantage in having two caching entities in the way of each request. But you should be careful and understand how the caching works. For example cloudflare do not cache your pages in a central repository but each data center has its on cache so in an edge case you … Read more

How to keep cache files after plugin update?

Ok, after having digged into WP source for a couple of hours, found a workaround. Simply tell wordpress to NOT remove old files. Now files are 100% overwritten and cached files maintained. Code is really simple add_filter(‘upgrader_package_options’, ‘avoid_deletion’, 999); function avoid_deletion($options) { if($options[‘hook_extra’][‘plugin’] == ‘my-plugin/my-plugin.php’) { $options[“clear_destination”] = false; $options[“abort_if_destination_exists”] = false; } return $options; … Read more

Disable caching when serving static files with Nginx (for development)

Since the answer is somehow hidden in the question – here is the solution for nginx in a VirtualBox environment as standalone answer. In your nginx config (usally /etc/nginx/nginx.conf) or vhost config file change the sendfile parameter to off: sendfile off; While sendfile is at the heart of Nginx’s fame (blazing-fast low-level static file serving … Read more