The following warnings occurred: | |||||||||||||||
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
|
MarkupSectionCache for ItemManager 2.2+ - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Scripts & Components (http://get-simple.info/forums/forumdisplay.php?fid=11) +--- Thread: MarkupSectionCache for ItemManager 2.2+ (/showthread.php?tid=8016) |
MarkupSectionCache for ItemManager 2.2+ - Bigin - 2016-02-20 ItemManager's - MarkupSectionCache is a simple method that enables you to cache any individual parts in a theme. It's usable for example, if you have a huge number of Items that has 300+ rows in a dropdown field. Loading a list of items with dropdown fields, each of them with over 300 rows and creating the select options on every pageview isn't really efficient, but what is the solution if you didn't want to cache the whole theme because it needed to support dynamic parameters? The solution is to cache just the code that generated the item part in theme. Here's a code example: PHP Code: $manager = new IManager(); By default cache is stored for an hour. To specify shorter/longer cache time, you'll need to pass that as second parameter to get: PHP Code: // Cache theme section for 10 minutes |