0
Welcome Guest! Login
0 items Join Now

Caching explained...?

    • 's Avatar

    Re: Caching explained...?

    Posted 12 years 11 months ago
    • There are a lot of smart people around these forums This question had many of them as deep in the dark as the rest of us. Thanks Andy for explaining this. It will certainly help me make better choices.
  • Re: Caching explained...?

    Posted 12 years 10 months ago
    • W Shealy's Avatar
    • W Shealy
    • Hero Rocketeer
    • Posts: 256
    • Thanks: 2

    Re: Caching explained...?

    Posted 12 years 9 months ago
    • Finally got it all working according to Andy's plan. It took me forever to discover that I only needed to exclude one ie7.css from showplus slideshow module in rokzipper for the page to format correctly. /modules/mod_showplus/css/slideshow.ie7.css added to system rokzipper exclude box in case anyone is curious.
      Thanks!
      Wallace
  • Re: Caching explained...?

    Posted 12 years 7 months ago
    • I have enabled the settings recommend on page one:
      Gzip compression on
      Global config cache on
      system cache off
      gantry gzipper off
      gantry cache on
      plugin gantrycache -- not found on halcyon
      plugin rokgzipper on.

      Website is www.tabsuwear.com . I ran a gtmetrix report on it and it was looking pretty dismal which is bothersome since I really have very little configured on the site right now. Just starting really. I do have some large images that need to be reduced, but it seems there are deeper issues than just that. The gtmetrix report on it is below. The other question of course is -- is this gtmetrix deal bogus or is it pointing up legitimate issues. The site does seem pretty slow for a pretty new and simple installation...

      gtmetrix.com/reports/www.tabsuwear.com/nzbyI8g9
    • David Goode's Avatar
    • David Goode
    • Preeminent Rocketeer
    • Posts: 17058
    • Thanks: 890
    • Web Designer and Host

    Re: Caching explained...?

    Posted 12 years 7 months ago
    • Hi there,

      I would take some of the report with a pinch of salt. When you look at the first key item in their report they mention duplicate content from different urls. I see 12 image files and I suspect they are all different!

      Looking at YSlow there is very little wrong other than the stupidly large images being used for your top sellers - 3264 x 2448 is huge! - you then scale it to 80 x 62 :oops:

      Change the images and see how much higher YSlow rates your site.

      Hope this helps 8)

    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information
    • W Shealy's Avatar
    • W Shealy
    • Hero Rocketeer
    • Posts: 256
    • Thanks: 2

    Re: Caching explained...?

    Posted 12 years 7 months ago
    • Summary
      Global
      Cache: Live Prod - Yes
      GZip: Yes
      Plugin - System Cache - No
      Gantry Template Details
      Gantry Cache: Live Prod - Yes (replaced plugin ROK Gantry Cache)
      Gzip - No (prefer plugin)
      Plugin
      Rok Zip: Yes (turn Template GZip Off)
      ROK Gantry Cache: Dep - Now part of Gantry
    • 1221's Avatar
    • 1221
    • Sr. Rocketeer
    • Posts: 181
    • Thanks: 0

    Re: Caching explained...?

    Posted 12 years 7 months ago
    • mistrhanky -you are not stupid for using large images. It is a beginners mistake that hopefully you now realize will make a big difference!
  • Re: Caching explained...?

    Posted 12 years 7 months ago
    • No doubt. I typically write business sites that use very little images at all, and did not calculate the impact of those big images. Good lesson for me. Irfanview did a nice job in reducing the quality with very little loss on my images.
  • Re: Caching explained...?

    Posted 12 years 7 months ago
    • I've found a good article explaining the different caching types and handlers
      www.bzzzz.biz/blog/joomla/joomla-1.6-cac...ennifer-series.bzzzz
      Joomla 1.6. makes heavy use of caching and to be able to use it's full potential we must first understand how caching works. As caching was almost completely redone for 1.6. (mostly by the author of this article), some older descriptions and typologies don't apply any more.



      Cache - temporary store an unit of information to be reused later.

      Why?

      Mostly because retrieving stored information is MUCH (up to 10 times or more) faster than initial generation. If you need a drastic example - a book is long term cache of it's authors knowledge. It could take years to accumulate this knowledge, while reading from this cache is a much faster thing as we all know.

      But back to Joomla - more specifically, what we are dealing with here is web application caching - creating temporary static copies of otherwise dynamic pages (or smaller data units). Caching is particularly appropriate for web applications as typical web site displays the same content over and over again and without cache everything has to be generated for each and every page view. Caching system temporary stores this information generated by the code in a cache object and serves it when it is requested by the next user.

      To understand Joomla cache a little deeper we must get familiar with two concepts - cache types and cache handlers.For easier understanding take a look at pictures that illustrate each cache type coverage area.


      JOOMLA CACHE TYPES


      PAGE CACHE

      Takes snapshots of entire pages including everything - component, modules, plugins and a template. It is the fastest, the widest and the least flexible approach of all caching options. To activate it one must enable core system plugin and so it's usage is site administrators choice.


      PROGRESSIVE CACHE (new in 1.6.)

      Takes snapshot of each unique modules set (typically each page). Affects all modules - works as layer above module cache and stores a set of modules in rendered state.

      It is enabled by setting cache level to progressive, also a site administrators choice. If you need fine grained control over each module cache, use conservative caching level which disables this caching layer (you get the same behaviour as in 1.5.).


      MODULE & COMPONENT VIEW CACHE

      They form a group as they they both create a static copy of complete output of a component or a module. This are most widespread cache types, sometimes equaled with Joomla caching in general.

      It's positive side is that it performs well in the speed terms, but on a negative side disables any user<->extension<->framework interaction until a cached copy has expired. That means it is not suitable for any components or modules that react to user actions or render frequently changing content.

      As cached copy includes only modules or components own output , any external file that is called by using methods like $document->addStyleSheet() won't get included. To come around this limitation we have implemented numerous workarounds, but they represent a kind of catch22 situation - workarounds require computing resources and so diminish the effect of caching.

      This kind of cache must be implemented by extension developers.


      FUNCTION / CALLBACK CACHE

      The first of flexible caching types that enable us to differentiate between various parts of the extension and cache only those parts that are cacheable, while keeping dynamic parts uncached. It caches results of function calls in code.


      OUTPUT CACHE

      Caches output of some part of the script. It is basically output buffering with caching and is not used often.


      RAW CACHE

      Caches any data units. Fully controlled by the coder - what, when to store, how to classify stored units (cache id). Highly useful when we are dealing with finite number of reusable data units.

      This type is used in Joomla core to cache framework operations: list of components, list of modules, menu tree, available languages, user groups, html renderers etc.


      WHAT HAPPENS WHEN WE HAVE MULTIPLE CACHES WORKING AT THE SAME TIME?

      Caching types work like non-transparent layers on top of each other (except module/component view cache that work in parallel). To understand it we must imagine that we we are viewing a web page from above and page cache represents the top layer, while function/output/raw cache represent the bottom layer. What happens is that each higher layer covers those laying bellow. So generally when using page cache all other caches are not relevant - with one exception - a situation when we are using different lifetimes for different cache type. E.g. we might cache rendered page views for a short time and cache images for a very long time - in this case most times view is rendered it pulls images from image cache.


      CACHE HANDLERS

      Cache handler are heavy workers. They are the ones that do the dirty job and store information on chosen media. To be able to use cache we must have at least on cache handler available.

      By default Joomla uses File cache handler, which uses files to store information. File cache works reliably but it it relatively slow compared to memory based handlers.If file cache is not available you must fix your cache folder permissions so that web server can write in it. If you don't know how to do that ask you hosting provider.

      In Joomla 1.6. there are 7 different handlers: File cache and Cache lite handlers that use files for storage and APC, Eaccelerator, Memcached, Xcache and Wincache that use memory. To use any but File cache, you need to have appropriate php extension installed. To use Memcached you would also need at least one memcached server running.

      Note - some of those extensions are not compatible, to be on the safe side use only one memory based cache at the time.
    • You can call me George
      J2.5.8, Panacea v1.6.6 - www.eks-ik.eu
      J2.5.8, Syndicate 1.6.5
    • proton5's Avatar
    • proton5
    • Hero Rocketeer
    • Posts: 368
    • Thanks: 0

    Re: Caching explained...?

    Posted 12 years 6 months ago
    • Hi Andy:

      How affects all the information above with the launch of RokBooster?

      Regards.

Time to create page: 0.060 seconds