mirror of
https://github.com/silverstripe/silverstripe-staticpublisher
synced 2024-10-22 14:05:54 +02:00
FIX: Restore missing getMetadata from silverstripe-cms/f9504e. (Fixes #16)
This commit is contained in:
parent
ba51f661d4
commit
462651d59d
@ -28,7 +28,16 @@ abstract class StaticPublisher extends DataExtension {
|
|||||||
*
|
*
|
||||||
* @var string
|
* @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
|
* @param array
|
||||||
@ -175,4 +184,15 @@ abstract class StaticPublisher extends DataExtension {
|
|||||||
|
|
||||||
return $urls;
|
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)')
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
@ -110,6 +110,6 @@ class RebuildStaticCacheTask extends BuildTask {
|
|||||||
unlink($cacheBaseDir.'/lock');
|
unlink($cacheBaseDir.'/lock');
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "\n\n== Done! ==";
|
echo "\n\n== Done! ==\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user