From ae5cf37f2d0716e83b7905fa6d5f76a107e36350 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 13 Apr 2010 03:26:37 +0000 Subject: [PATCH] BUGFIX: Removed destroy() calls from static cache builder; with the garbage collection improvements it shouldn't be necessary. (from r89983) (from r96798) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@102661 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/staticpublisher/FilesystemPublisher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/staticpublisher/FilesystemPublisher.php b/code/staticpublisher/FilesystemPublisher.php index 600d9cda..c6af352c 100644 --- a/code/staticpublisher/FilesystemPublisher.php +++ b/code/staticpublisher/FilesystemPublisher.php @@ -118,7 +118,7 @@ class FilesystemPublisher extends StaticPublisher { $response = Director::test(str_replace('+', ' ', $url)); Requirements::clear(); - DataObject::flush_and_destroy_cache(); + singleton('DataObject')->flushCache(); // Generate file content // PHP file caching will generate a simple script from a template