mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #156 from silverstripe-big-o/staticPublishingFix
BUGFIX: fixing an edge-case bug where a 404-page would get statically pu...
This commit is contained in:
commit
8dc2770ce1
@ -191,10 +191,11 @@ class FilesystemPublisher extends StaticPublisher {
|
||||
|
||||
Requirements::clear();
|
||||
|
||||
|
||||
|
||||
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
|
||||
// PHP file caching will generate a simple script from a template
|
||||
if($this->fileExtension == 'php') {
|
||||
|
Loading…
Reference in New Issue
Block a user