Results 1 to 3 of 3

Thread: Caching features

  1. #1
    User winanscreative's Avatar
    Join Date
    06-21-09.
    Location
    Massachusetts, United States
    Posts
    261

    Default Caching features

    Here's something I would like to just throw out there and see what other devs think.

    We all know how Contao's core page cache works... The parsed page gets saved to the tmp folder and loaded from there if it is found to be within the cache time window.

    This works great except for when you have a single element on the page that should not be cached (ex: Shopping Cart, Login Module or other Dynamic Feature). Then you need to disable caching on the whole page to prevent those items from being cached.

    It would be much better if we could simply choose to cache individual modules and pull those into the page layout. Seems like the caching could be done at the Module/ContentElement class generate() method, but I admit I haven't thought through some of the ramifications of this.

    I have some projects where this may be advantageous in terms of optimizing the site, so I am interested to hear any opinions/suggestions. When I have some free time I may try and get a proof on concept going to measure if it can work and what the advantages would be. Thanks! :idea:

  2. #2
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,287

    Default Re: Caching features

    Hi Blair,
    Quote Originally Posted by winanscreative
    Here's something I would like to just throw out there and see what other devs think. [...]

    It would be much better if we could simply choose to cache individual modules and pull those into the page layout. Seems like the caching could be done at the Module/ContentElement class generate() method, but I admit I haven't thought through some of the ramifications of this.

    I have some projects where this may be advantageous in terms of optimizing the site, so I am interested to hear any opinions/suggestions. [...]
    We had such a discussion in the German Contao board some time ago: http://www.contao-community.de/showthre ... ptimal-ein
    There were proposed similar solutions (as mentioned by you here) regarding a more granular cache mechanism: http://www.contao-community.de/showthre ... #post27719

    Further, in the tracker we still have an accepted ticket regarding this topic: http://dev.contao.org/issues/show/1206
    Contao Community Moderator
    → Support options

  3. #3
    User winanscreative's Avatar
    Join Date
    06-21-09.
    Location
    Massachusetts, United States
    Posts
    261

    Default Re: Caching features

    Thanks for those links, xchs... very helpful. I will keep an eye on those and brush up on my German so I can pop into the German forum!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •