0
Welcome Guest! Login
0 items Join Now

Gantry & JotCache

  • Gantry & JotCache

    Posted 14 years 1 month ago
    • Has anyone gotten JotCache to successfully work with Gantry? I can't seem to prevent module positions from being cached.

      The JotCache instructions say to surround the following with special code:
      <jdoc:include type="modules" name="xxx" ... />

      But Gantry doesn't have code like that. Instead, it has:
      <?php /** Begin Main Top **/ if ($gantry->countModules('maintop')) : ?>
         <div id="rt-maintop">
         <?php echo $gantry->displayModules('maintop','standard','standard'); ?>
         <div class="clear"></div>
         </div>
      <?php /** End Main Top **/ endif; ?>

      When I apply the JotCache tags to this code, the module position disappears entirely. I guess it isn't cached, but that doesn't help if it never appears anyway.

      JotCache really speeds up a web site, but it also prevents ads (from iJoomla Ad Agency) from rotating. I don't want to have to choose. :cry:
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: Gantry & JotCache

    Posted 14 years 1 month ago
    • Gantry Cache and RokGZipper doesn't work for you?
    • Please reply with a direct link to the issue & create a new thread for each new issue.

      A template is only as good as the content that goes into it ;) - DanG
  • Re: Gantry & JotCache

    Posted 14 years 1 month ago
    • Certainly they work, but they don't work nearly as well. JotCache takes the time for the initial byte from 3-4 seconds down to less than .5 seconds. It might not be quite as good when the ad modules are not cached, but it will still be a big improvement.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Gantry & JotCache

    Posted 14 years 1 month ago
    • Quote from the JotCache site:

      Module exclusions can be implemented on all Joomla templates which are using standart jdoc:include tags (inclusive Artisteer generated templates). Templates using non-standart template processing (e.g. Warp system of Yootheme) cannot be adapted for JotCache exclusion described further.

      Same is for Gantry but you can look yourself:
      <jdoc:include type="modules" name="xxx" ... /> is locate here:

      com_gantry/core/renderers/gantrymainbodyrenderer.class.php
      and
      gantrymodulesrenderer.class.php

      This just won't work sorry.
    • Laurent's Avatar
    • Laurent
    • Hero Rocketeer
    • Posts: 445
    • Thanks: 1

    Re: Gantry & JotCache

    Posted 14 years 2 weeks ago
    • I have the same problem, how exclude a module from caching page ?
    • Wael Adel's Avatar
    • Wael Adel
    • Jr. Rocketeer
    • Posts: 43
    • Thanks: 0

    Re: Gantry & JotCache

    Posted 13 years 11 months ago
    • i am using Affinity, can any one describe for me how to exclude right and user7 position from being cached by jotcache?
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Gantry & JotCache

    Posted 13 years 11 months ago
    • please read the above posts ... it will not work for Gantry templates!
      I can't really see how we could give support on this question anyway.
      Ask the dev of that extension/software ...
    • Martin's Avatar
    • Martin
    • Jr. Rocketeer
    • Posts: 41
    • Thanks: 3

    Re: Gantry & JotCache

    Posted 12 years 3 months ago
    • Just an update.

      Since version 3.x this is working, i am working with it. Some modules still gives problems.

      In JotCache go to the option "Exclude Template Positions from Caching". There you have to fill in a style in the Style field. Their documentation is not so clear about this.
      The used styles in Gantry 4.x you can find in the html folder of your template in modules.php.
      There you see something like modChrome_submenu, modChrome_basic, modChrome_standard and modChrome_menu. The part behind the modChrome_ is the style.
      Mostly you can use basic.

      So in the style field from JotCache -> Exclude Template Positions from Caching you fill in: basic behind the module position which you want to exclude from the cache. Don't forget to clear the Joomla cache first. Also use Mark to check it. When all is working well you will see a red dashed line around the module. Because Jot Cache add some style it could be posible that the view of the module is messed up. Just Reset Mark and it will be ok again.

      Like i said, it's not always working. I have for instance a module which isn't working, it stays cached. And also JotCache is only working when you are not logged-in.
    • The following users have thanked you: Imke Philipoom

Time to create page: 0.070 seconds