mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 11:34:24 +03:00
264661ee09
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 🙄
7 lines
256 B
JavaScript
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);
|
|
};
|