About Markup Cache (Core)
This core module enables you to cache any individual pieces of generated markup.
Category 1 | Markup Generation Markup modules that are called upon to generate or parse markup (like HTML). Markup modules are most often used on the front-end of a site (rather than admin). |
---|---|
Category 2 | Core Modules Core modules are those already included with the ProcessWire core, but not necessarily installed. Most modules listed here can be installed by going to the modules screen and clicking "install" next to the module name. |
Release State | Stable Should be safe for use in production environments. * |
Author | ![]() |
Module Version | 1.0.1 |
Class Name | MarkupCache |
Compatibility | 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7 |
Date Added | July 26, 2012 |
Last Updated | July 25, 2012 |
Recommended By | New recommendations may take up to 1 day to appear. |
Details
I'm working on a site now that has 500+ cities in a select pulldown generated from ProcessWire pages. Loading 500+ pages and creating the select options on every pageview isn't terribly efficient, but I didn't want to cache the whole template because it needed to support dynamic parameters in the URL. The solution was to cache just the code that generated the select options. Here's an example:
I left the markup generation code (the part that gets cached) out of the example above to keep it simple. Below is the same example as above, but filled out with code that finds the pages and generates the markup (the part that gets cached):
Instructions
This module is now included with the ProcessWire core and thus only requires you to click the install button on the modules screen.
Comments
Seems outdated. See WireCache
https://processwire.com/api/ref/cache/
https://processwire.com/blog/posts/processwire-core-updates-2.5.28/#wirecache-upgrades
Post a Comment
Your e-mail is kept confidential and not included with your comment. Website is optional.
- Admin Helpers
- Authentication
- Core Modules
- Development Tools
- Email/WireMail
- Field Types
- Import/Export
- Input Fields
- Language Modules
- Language Packs
- Logs/Monitoring
- Markup Generation
- Photo/Video/Audio
- Premium Modules
- Process Modules
- Proof of Concept
- SEO/Accessibility
- Site Profiles
- Social, Feeds, Services
- Text Formatters
- Other Modules
- Users and Access
Disclaimer
*Use modules at your own risk. There are no guarantees or warranties. It is recommended that you backup your site and database before installing new modules.