Recently, I had a strange issue where some pages on my multisite were being cached, and others were not. There seemed to be no clear pattern as to what got cached and what failed the cache test. At first, it seemed a bit daunting to jump into the w3tc page caching code, but it actually […]
Archives for 2013
How to Translate blogs.dir CDN Files in w3tc
My main site has a WordPress Multisite setup that is divided based on directories. For example, My dog articles are in http://shibashake.com/dog/ and My art galleries are in http://shibashake.com/blog-art. In this setup, my image links look something like this – http://shibashake.com/dog/files/2012/12/dog-image1.jpg However, this is just a shorter more pretty url. The actual image file resides […]
How to Create Dynamic User Agent Groups in w3tc
Currently, in the w3tc plugin, we can create user agent groups by specifying agent names, e.g. android or iphone. By using this function, we can create different caches for different sets of devices. On my blogs, I need to create different caches based on screen width. This is because I serve up different widgets, ads, […]
How to Selectively Load Plugins for Specific Pages
In a previous article, we considered how to selectively disable certain plugin functions, in order to enhance page speed. I.e., only run expensive plugin functions on page content that needs it. Disabling plugin functions may help to save us some time and resources. However, the plugin files will still be loaded, and the initialization methods […]
WordPress Theme Customizer Javascript Interface
Here, we focus on understanding the javascript nuts and bolts of the WordPress theme customizer interface. This will allow us to – Extract and change theme customizer settings. Extract and change theme customizer controls. Call theme customizer functions, such as refreshes and more. wp.customize Understanding the WP theme customizer interface centers around understanding the wp.customize […]
Mobile Responsive Galleries and Images
Different approaches for responsive galleries and images, including their pros and cons.
How to Add the WordPress 3.5 Media Manager Interface – Part 2
How to make some simple customization to the WordPress 3.5 media manager interface.
How to Add the WordPress 3.5 Media Manager Interface
A tutorial on how to add the new WordPress 3.5 media manager interface into our own plugin or theme.