How to clear WordPress Cache from Server/FTP/Remote location

WordPress has no native page source output caching. In vanilla installation changes to templates should show up immediately. If that doesn’t happen there are several possible reasons: there is static page cache plugin installed, which serves stale version (the specific implementation of cache would depend on a plugin); there is a caching layer between the … Read more

WordPress hangs when I publish or update a post [closed]

Initially this sounds like a hosting problem and not a WordPress issue. Where are you hosted? Shared? Dedicated? php version? mysql version? Run through a typical wp hack protocol and check for base64 code in wp-config.php, any theme files and akismet plugin files… also any other php files. Database hacks are sometimes hard to find … Read more

how to add new .webm mime types

The WebM file format isn’t known to WordPress by default, you have to add it. add_filter( ‘upload_mimes’, ‘custom_mimes’ ); function custom_mimes( $mimes ){ $mimes[‘webm’] = ‘video/webm’; return $mimes; } The .ogg file format is known to WordPress as audio/ogg, if you’re wanting to do video with it, the correct extension is .ogv.

How Restrict access to admin dashboard by specific static ip?

By the time admin_init rolls around you should know if you’re doing AJAX or not. If you’re not, then check the IP. Keep in mind that anyone can fake that number. add_action(‘admin_init’, function() { if(defined(‘DOING_AJAX’) && DOING_AJAX) { return; // ignore ajax }; $ip = $_SERVER[ ‘REMOTE_ADDR’ ]; if($ip !== ‘10.0.0.0’) { wp_die(__(‘You are not … Read more

Multiple Multisite networks on the same domain?

You can not run different networks or different Multisite installations under one domain in the default possibilities of WP. But you can use one Multiste with multiple networks with the help of a plugin – https://wordpress.org/plugins/wp-multi-network/ With this plugin get you the chance to create different networks with sites in one installation, one Multisite. Like … Read more

Universal problem: first request after ~25 second inactivity always slower (~1 second) than subsequent requests (~1/10sec)

Without looking at your box to see exactly what’s going on, here are some potential avenues of slowness: Potential Causes Apache Apache is usually configured in such a way that a single httpd process is always running in the background. When a request comes in over the wire, it spins up a new httpd process … Read more