Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static publishing fix24 #157

Merged
merged 1 commit into from Jul 9, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 4 additions & 3 deletions code/staticpublisher/FilesystemPublisher.php
Expand Up @@ -186,11 +186,12 @@ function publishPages($urls) {
$response = Director::test(str_replace('+', ' ', $url));

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') {
Expand Down