Will memcached improve performance with WP Super Cache already running?

In the most simple terms, memcached/redis is for caching things like options and database values. WP Super Cache is meant for serving static HTML files, instead of loading PHP, but with that said, it will still have to run PHP code to generate those files. So yes, if you have the option of using memcached … Read more

Warning! PHP safe mode enabled!

What is this? Safe mode was an attempt to solve shared-server security problems at the PHP level. It restricts and even disables some built-in PHP functions (e.g. mail(), header() and session_start() — see attempted full listing of functions restricted/disabled in safe mode) What should I do? If you have access to your PHP configuration file … Read more

insufficient permissions; coding an action for plugin governed by custom capability

You should not use the page parameter in an admin url unless you are going to go to an options page because a check for the ‘manage_options’ capability is the default permissions check. The goal of the ‘Delete Cache’ link is to run an action, then redirect to the current page/post; it is not to … Read more

Using wp-super-cache and amazon cloudfront – can I serve a file directly (no cdn)? [closed]

The CDN tab of wp-supercache allows you to exclude files and folders. [edited to add] The field exclude if substring allows entry of a comma separated set of strings (eg .php, wp-include, specialpluginjsfilename). Any file names that match against this set of values is excluded from the CDN. So, using the example above the following … Read more

WP REST API and Access-Control-Allow-Origin

I found a .htaccess solution, but I will be happy if anyone know a working PHP solution. It’s my .htaccess with multiple domain access support and access for only GET request: # CORS Headers <ifModule mod_headers.c> SetEnvIf Origin “^http(s)?://(.+\.)?(localhost:8080|example\.com|example\.net)$” origin_is=$0 Header always set Access-Control-Allow-Origin %{origin_is}e env=origin_is Header always set Access-Control-Allow-Methods “GET” Header always set Access-Control-Allow-Headers … Read more