Asset Listing nested in Design - caching issue

Hello,


I'm using Matrix v4.6.0, nesting an Asset Listing (to pick random images) in a Design. In the Design Area Details screen, I've set the Cache and Cache Globally options to 'No'. In the Design Parse File, I've set the <MySource_AREA /> 'cache' attribute to 0 (and tried removing it altogether).



However, the first image which is selected by the Asset Listing is cached and appears each time the page is refreshed. The intention is to have a different image appear each time. It works fine when I'm logged in, but throws up the cached image whenever I test it when logged out.



Anyone have any advice?



Many thanks in advance.



Jamie

Have you tried excluding the asset listing itself from cache, using the Cache Manager?

Personally I wouldn't use a non-cached asset listing as you should try to always cache everything for performance. I would use a javascript solution which is very easy to implement.

The page is cached, you need to turn off the browser cache too. As Nic said it's not good practice because every time the page is hit Matrix needs to regenerate it. A better way is to have asset listing generates a list of images then JavaScript picks one randomly.

Thanks for the advice, guys. Will use a JS solution. Useful info, though, re Cache Manager.


Cheers,



Jamie