Caching designs

Hi,
is there any tricks to cache designs in Matrix 3.6 or is it just a matter of switching the cache manager on?



Cheers.

What part of the design are you trying to cache? Once a design is Live with Public Read permission, all the associated files will be served directly by Apache. Assuming Apache has mod_expires and mod_headers installed and active, it will send the appropriate caching headers for each of those files.


For the design areas themselves (menus, etc), you can add "cache=1" to the <mysource_area> declaration. While this will improve performance, it may negatively impact immediacy: For example, if you cache a menu design area and add a new page, the page will only appear in the navigation after the cache has refreshed.



Is this the information you were after?

[quote]Is this the information you were after?
[right][post=“6834”]<{POST_SNAPBACK}>[/post][/right][/quote]

Well, my question was more related to the fact that it’s been advertised that 3.6 is doing better design caching than older versions. Given that the cache manager screens looked the same, I was wondering if there were specific options that could be switched to use those improvements. A bit like the ability to maintain friendly urls for file assets by unselecting the ‘allow unrestricted’ on each file.



Thanks for your answer anyway which lead to a new question:

Is “cache=1” in <mysource_area> different from using the cache manager and cache design assets?

That cache=1 option will cache those particular portions of the design, completely seperate to the caching of asset content output. Both caching operations are handled by matrix's cache manager, but you will not be able to configure design level caching from the admin interface, it's managed automatically for you. All you have to do is set cache=1 for the design areas you wish to cache (apart from things like login areas, which will never be cached).

[quote]Thanks for your answer anyway which lead to a new question:
Is “cache=1” in <mysource_area> different from using the cache manager and cache design assets?

[right][post=“6837”]<{POST_SNAPBACK}>[/post][/right][/quote]



Design assets do not cache at all. Certain design areas can be cached, which requires the addition of the cache=“1” parameter on the design area declaration.

Which design areas can be cached? I couldn’t find any information in the current design manual http://matrix.squiz.net/__data/assets/pdf_file/1974/MySource_Matrix_Design_Manual.pdf

[quote]Which design areas can be cached? I couldn’t find any information in the current design manual http://matrix.squiz.net/__data/assets/pdf_file/1974/MySource_Matrix_Design_Manual.pdf
[right][post=“6856”]<{POST_SNAPBACK}>[/post][/right][/quote]



Hi Andrew



in the updated Design Manual for 3.6 there are entries about the cache options - this will be released on the site in the next week (sorry for the delay)



The cache option is available for all design areas EXCEPT for body, show_if and login_form.



Enjoy! B)