Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kaermorchen/prerender-mysql-cache
Prerender plugin for MySQL caching
https://github.com/kaermorchen/prerender-mysql-cache
Last synced: 22 days ago
JSON representation
Prerender plugin for MySQL caching
- Host: GitHub
- URL: https://github.com/kaermorchen/prerender-mysql-cache
- Owner: kaermorchen
- License: mit
- Created: 2015-05-31T09:35:26.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-26T08:02:59.000Z (over 9 years ago)
- Last Synced: 2024-09-14T10:13:18.833Z (about 2 months ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# prerender-mysql-cache
MySQL storage for prerendered HTML.
Automatically creates a table 'pages' and stores the processed HTML.#Installation:
npm install prerender-mysql-cache
Edit server.js:
process.env.PRERENDER_MYSQL_CACHE_MYSQL_URL = "mysql://user:pass@host/db";
//If you want to updated cache, specify time life in seconds
process.env.PRERENDER_MYSQL_CACHE_REFRESH_TIME = 24 * 3600;server.use(require('prerender-mysql-cache'));
server.start();