Cache Issue

Sukh
Sukh
Offline
0
Hi

I have enabled caching on the site, and everything is fine, however I don't want certain modules to be cached (like displaying random artists) I cant find a option to not cache this module do you know if this is possible to do?

Or do you know how I could disable the cache only on muscol?
Responses (3)
  • Accepted Answer

    Wednesday, October 31 2012, 04:39 PM - #Permalink
    0
    hmm honestly I don't know if that's possible (to select if a module can "not be" cached) is this something you can define in other modules?
    The reply is currently minimized Show
  • Accepted Answer

    Sukh
    Sukh
    Offline
    Wednesday, October 31 2012, 08:19 PM - #Permalink
    0
    Hi

    Yes on the default Joomla modules their is an option under Advanced Options which lets you make the particular module not cached.

    I don't have any other major custom content scripts that come with modules so cant check if they have managed to implement it for their modules.

    The main issue is only with using random or show latest artists added the the modules wont get updated until the cache time expires or until I blow the cache manually. Just a bit annoying but I can live with it if theirs no easy solution.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, November 02 2012, 05:47 PM - #Permalink
    0
    well, we could try to add the same exact parameter to this module and hope Joomla recognizes it and it does not cache it.

    if you open the module XML file (located in /modules/mod_muscol_recently_added/ or whatever, you need to add this new field:


    [field name="cache" type="list" default="1" label="Caching" description="Select whether to cache the content of this module"]
    [option value="1"]Use global[/option]
    [option value="0"]No caching[/option]
    [/field]


    (please replace the "[" and "]" for the opening and closing XML file chars. do you know what I mean (I can't copy here because it would strip out the code)
    The reply is currently minimized Show
Your Reply