We've moved! You can find modules, themes and widgets on http://addons.silverstripe.org.
This page will no longer be updated, and disappear soon. Module maintainers, please read our announcement to find out how to add your modules there.

menucache [v0.1]

Maintainer(s): Nicolaas
Supported by: Not supported

This module allows you to cache parts of your pages (e.g. the menu), this reduces processing time and increases your database size.

This module allows you to cache the menu and other parts of your pages. You do this to reduce processing time. As a trade-off, it will increase the size of your database.

The first time a page is loaded, it will run the standard menu. At the same time, it will save it to the database. The way it saves it is as an extra field in the SiteTree table. Everytime the page is loaded after that, , it will retrieve the cached sections (menu) as one big chunk of html.

The code provides several flushing tricks:

  • http://www.mysite.com/home/showcachedfield/[0-4]/?flush=1
  • http://www.mysite.com/home/clearfieldcache/[0-4]/?flush=1
  • http://www.mysite.com/home/showuncachedfield/[0-4]/?flush=1
  • http://www.mysite.com/home/clearallfieldcaches/?flush=1


Common things to cache are:

  • header / footer sections
  • menus


It will be particular useful in areas where you do a lot of processing and database accessing (e.g. building a LARGE menu).

You can have up to five cached areas on your pages.

Release(s)

  • Latest release

    Version: [v0.1]
    Date: 2009-10-01
    Compatible with: SilverStripe 2.3
    Download: sunny.svnrepository.com-menucache-r5634.tar.gz

    Subversion access: http://sunny.svnrepository.com/svn/sunny-side-up-general/menucache

  • Latest trunk build

    To get a preview of our next release, download the latest build of unstable trunk here. Please be careful: this is more likely to contain bugs, especially on modules undergoing a lot of development.

    Revision: #5634
    Build Date: 2014-04-23
    Download: sunny.svnrepository.com-menucache-r5634.tar.gz

    Unstable Subversion access: http://sunny.svnrepository.com/svn/sunny-side-up-general/menucache

 
 

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.