Ghost/core/server/utils/asset-hash.js
Hannah Wolfe 264661ee09 🐛 Refresh assetHash on theme override (#7430)
closes #7423

- Extend our dirty theme override cache clear hack to also reset the asset hash
_ This brings alpha into line with the LTS branch
- This still needs a rewrite for Ghost 1.0.0 🙄
2016-09-23 13:05:44 +02:00

7 lines
256 B
JavaScript

var crypto = require('crypto'),
packageInfo = require('../../../package.json');
module.exports = function generateAssetHash() {
return (crypto.createHash('md5').update(packageInfo.version + Date.now()).digest('hex')).substring(0, 10);
};