A lightweight in-memory cache plugin for Prerender server, version 1.0.2. It caches rendered HTML pages in memory to avoid re-rendering the same URL repeatedly, improving performance for high-traffic sites. Configurable max cache size (default 100) and TTL (default 60 seconds). No external dependencies, integrates as a middleware. Maintenance mode with no recent updates.
npm install prerender-memory-cacheNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up a Prerender server with in-memory caching middleware. The cache is enabled by default with TTL=60s and max 100 items.
Set process.env.CACHE_MAXSIZE and process.env.CACHE_TTL before any require of prerender-memory-cache.
Set a reasonable TTL or disable cache for dynamic pages.
Use a distributed cache like Redis for clustered environments.
Run 'npm install prerender-memory-cache --save' from the Prerender server root.
Ensure you're calling server.use on a proper Prerender server instance: const server = prerender();
Set CACHE_MAXSIZE and CACHE_TTL before requiring the module, or increase TTL.
No dependency data recorded yet.