FIX: Restore missing getMetadata from silverstripe-cms/f9504e. (Fixes #16)

This commit is contained in:
Will Rossiter 2013-05-24 18:21:51 +12:00
parent ba51f661d4
commit 462651d59d
2 changed files with 22 additions and 2 deletions

View File

@ -28,8 +28,17 @@ abstract class StaticPublisher extends DataExtension {
*
* @var string
*/
protected static $static_publisher_theme=false;
protected static $static_publisher_theme = false;
/**
* @var boolean includes a timestamp at the bottom of the generated HTML
* of each file, which can be useful for debugging issues with stale
* caches etc.
*
* @config
*/
private static $include_caching_metadata = false;
/**
* @param array
*/
@ -175,4 +184,15 @@ abstract class StaticPublisher extends DataExtension {
return $urls;
}
/**
* @param string $url
*
* @return array
*/
public function getMetadata($url) {
return array(
'Cache generated on ' . date('Y-m-d H:i:s T (O)')
);
}
}

View File

@ -110,6 +110,6 @@ class RebuildStaticCacheTask extends BuildTask {
unlink($cacheBaseDir.'/lock');
}
echo "\n\n== Done! ==";
echo "\n\n== Done! ==\n";
}
}