Different cache settings for different sites

We host (so far) two sites on one implementation. We are having some serious front-end speed issues (that have been logged with Squiz and are a mystery to all concerned). Right now our cache refreshes every 24 hours.


One of our sites is a very small site that will be rarely updated (several times a year). This site is live to the public. The other is our main site that will be updated several times a day and is yet to launch. They share the same root URL (ie. domain.com and domain.com/smallsite).



Hopefully by the time we launch the main site this will be sorted but I do need a solution in the meantime to get the pages loading faster.



I'd like to set a very long cache expiry for the small site and leave the other one at 24 hours. Can you set cache to look down the asset tree and have different settings for different sites (manual doesn't leave me much hope here)? Or is my only option to set a refresh cache job for every asset?


You can't change cache expiry on a per-site basis, unfortunately. You're probably better off with a Trigger that clears the cache on an asset when it is made Live. You can ask Support to help you configure this as well.

Hmm, so you suggest that both sites have an extended cache expiry with a trigger that watches all assets for set to live to clear? Could work I guess! At least until our hardware behaves. :rolleyes:


Thanks. :slight_smile:


Yup.