Where are the photos?

Posted on 19 Aug 2008 9:55pm by Aleks Bochniak

In case you were wondering where my travel photos disappeared to, I have decided to buy a Pro account an Flickr and upload my latest photos there. The main reason for this is the fact I haven't developed an image gallery for MySource Matrix yet, and that the iWeb templates I was using are too bulky and cumbersome.

So if you feel like taking a look, wander your way to my photostream. There is also a link to my flickr profile in the right hand column.

Btw, I've also upgraded to 3.18.4, installed a php accelerator and tweaked postgres and my cache settings. Hopefully this site is a little bit snappier now ;-)

Permalink | Read comments

Enabling MySource Matrix cache

Posted on 21 May 2008 3:08am by Aleks Bochniak

By default MySource Matrix comes shipped with caching turn off. Squiz recommend in their documentation that to increase performance, caching should be enabled for your sites. To do this, you will need to access the Cache Manager in System Management via the Asset tree. The Cache Manager allows you to turn on caching as well as set the default expiry time.

The number of cache buckets allows you to set the file system directories to use for caching. If you set a low number, each directory will hold a large number of files which may reach operating system limits. If you set the number too high, each directory will hold a small number of files which may be inefficient.

The default expiry length (seconds) is 86400 (24h). For my site I have changed this to 604800 seconds (one week), as I don't post very often. I have also enabled Public Level, Permission Level and Group Level caching. More information about these options can be found in the System Administrator manual on Squiz's documentation website.

When an asset is updated the cache is not automatically cleared until the expiry time has been reached. To get around waiting for changes to appear on your site, you can create a Trigger to automatically clear the cache for an asset that has been updated.

Trigger to clear cache

Under the Trigger Manager (under System Management in the Asset tree), create a child asset of type Trigger named 'Clear cache on update'.

Set the following options:

Details

  • Status: Enabled

Events

  • Asset Updated

Conditions

  • Nil

Actions

  • Clear Matrix Cache
    Ignore Permissions
    Include Current Asset? Yes
    Level Selected assets and their dependants
  • Clear Matrix Cache
    Ignore Permissions
    Include Current Asset? Yes
    Level Selected assets and their children

The dependants of an asset are those that cannot exist without that asset. For example, the Page Contents asset of a Standard Page. The children of an asset are those that have been created underneath it in the hierarchy.

What this Trigger will do is clear the cache for any asset that has any of the attributes listed in Events updated. The cache for Asset Listings and Paint Layouts which list/nest other asset types will not be automatically cleared with this trigger. That is one exercise for you to figure out for yourself.

Permalink | Read comments

Upgraded MySource Matrix to 3.18.0

Posted on 23 Apr 2008 9:11pm by Aleks Bochniak

Finally after much drama of upgrading from Ubuntu Dapper to Edgy, then to Feisty, and then to Gutsy. I now have a working MySource Matrix 3.18.0 installation running on php5. woot

Now, I will go have a play and see what all the fuss is about. CAPTCHA on Asset Builders here I come!

Permalink | Read comments