24 Mar

A Poor Mans Staging/Live with WordPress and Rsync

Firstly, this isn't meant to be a serious contender for 'proper' version control, Eg. Subversion or Git, or anything of the kind. But instead just a nice little way of managing a WordPress staging and live site, so that you can perform simple design tweaks/changes on a staging site and roll out those changes gracefully … Continue reading

24 Mar

Magento HTTPS Redirect Loop

So you've enabled HTTPS in your store and suddenly you are faced with a redirect loop. In Magento versions prior to 1.6.2.0, Magento was only capable of checking the Apache $_SERVER['HTTPS'] variable. In ./lib/Zend/Controller/Request/Http.php the HTTPS sanity check would observe the contents of the HTTPS environment variable, if set to 'on' - it would be … Continue reading

8 Mar

What is Memcache actually caching in Magento

Your Memcache configuration in ./app/etc/local/xml will dictate what Memcache is actually caching. If you are only using a the single-level cache (without <slow_backend>), then Magento will store its cache (in its entirety) in Memcache. **HOWEVER** without the <slow_backend> defined - it is caching content, without cache_tags - ie. without the ability to differentiate cache items. … Continue reading

8 Mar

Secure your Magento Admin

Changing the URL for your Magento admin isn't really a way to protect your store; security through obscurity isn't security at all. Fortunately, there is a nice simple modification that you can make to your .htaccess file to protect certain URLs from prying eyes. For a single-store view Magento installation ############################################ ## Secure admin RewriteCond … Continue reading

18 Jan

We're against PROTECT IP Act (PIPA) - are you?

Try having a look around the internet today (Wednesday 18th January) and you'll soon run into a few roadblocks; especially if you're trying to reach one of the most popular and arguably best encyclopaedic resource around, WikiPedia. Big media and its allies in Congress are billing the Internet blacklist legislation as a new way to … Continue reading

9 Sep

Magento batch update category quick script

Just to supplement another post we made on bulk creating categories, below is a script used for bulk updating and attaching images to categories based on a specific CSV. There is no documentation to go with this code, I'm simply posting it because a subscriber has requested it. <?php define('MAGENTO', realpath(dirname(__FILE__) . "/..")); require_once MAGENTO … Continue reading