mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
Merge pull request #157 from silverstripe-big-o/staticPublishingFix24
Static publishing fix24
This commit is contained in:
commit
3fff44a5b4
@ -187,10 +187,11 @@ class FilesystemPublisher extends StaticPublisher {
|
|||||||
|
|
||||||
Requirements::clear();
|
Requirements::clear();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
singleton('DataObject')->flushCache();
|
singleton('DataObject')->flushCache();
|
||||||
|
|
||||||
|
//skip any responses with a 404 status code. We don't want to turn those into statically cached pages
|
||||||
|
if (!$response || $response->getStatusCode() == '404') continue;
|
||||||
|
|
||||||
// Generate file content
|
// Generate file content
|
||||||
// PHP file caching will generate a simple script from a template
|
// PHP file caching will generate a simple script from a template
|
||||||
if($this->fileExtension == 'php') {
|
if($this->fileExtension == 'php') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user