Commit Graph

33 Commits

Author SHA1 Message Date
Ingo Schommer
51c8e8639e API Marked statics private, use Config API instead (#8317)
See "Static configuration properties are now immutable, you must use Config API." in the 3.1 change log for details.
2013-03-24 17:21:04 +01:00
Ingo Schommer
8c3f87bb8a Results returned from FSP->publishPages()
Aids further processing and verbose display,
e.g. when the publication is triggered by a queuing mechanism.
2013-02-06 10:47:41 +01:00
Andrew O'Neil
f9504ee983 ENHANCEMENT Writing caching metadata as HTML comments in FilesystemPublisher (through StaticPublisher::$include_caching_metadata) (ischommer) 2013-01-14 17:08:12 +01:00
Andrew O'Neil
1722f00869 APICHANGE: add_extension() is now called directly on the class, instead of on Object 2012-11-07 11:08:36 +13:00
Ingo Schommer
df44239060 Method visibility according to coding conventions 2012-09-20 10:41:50 +02:00
Marcus Nyeholt
97d678b258 BUGFIX Provide default constructor value to filesystem publisher so that singleton calls (which don't pass params) don't fail 2012-08-05 18:02:13 +12:00
Julian Seidenberg
63ad68a7d3 BUGFIX: fixing an edge-case bug where a 404-page would get statically published and overwrite the homepage of the site (this would sometimes happen when a RedirectorPage was set to an external URL and still referenced an internal page ID) 2012-07-09 13:20:58 +12:00
Ingo Schommer
08a7bf0879 BUGFIX Remove double URL/filename filtering in FilesystemPublisher to avoid breaking multibyte URLs (now possible through recently introduced URLSegmentFilter class). Multibyte safe url path processing in FilesystemPublisher. 2012-05-08 22:22:08 +02:00
Simon Welsh
c4e018928e API-CHANGE sapphire folder can now be renamed. 2012-04-15 10:56:40 +12:00
Sean Harvey
1ab76865ea MINOR Remove use of deprecated ereg_replace() and use preg_replace() instead. 2012-03-27 22:52:33 +13:00
Fred Condo
d99e3a0927 Code cleanup: removed trailing ?> markers per code standard.
All cms module except lang directory.
2012-02-13 12:48:41 -08:00
Ingo Schommer
97778ba31c BUGFIX: Fixed caching of homepage. (from r106122)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@112488 467b73ca-7a2a-4603-9d3b-597d59a354a9
2010-10-15 02:36:25 +00:00
Sam Minnee
fa4415459a BUGFIX: static publisher for a site that resides in a subfolder of webroot (from r103745)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@112176 467b73ca-7a2a-4603-9d3b-597d59a354a9
2010-10-13 04:20:27 +00:00
Sam Minnee
cdfbc8a604 BUGFIX: static publishing now uses the last non-null theme, OR the value defined in StaticPublisher::static_publisher_theme. (from r103255)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@111661 467b73ca-7a2a-4603-9d3b-597d59a354a9
2010-10-04 06:14:49 +00:00
Sam Minnee
aa6e1c3341 BUGFIX: Correct StaticPublisher filenames, now works with nested URLS (from r99465)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@111612 467b73ca-7a2a-4603-9d3b-597d59a354a9
2010-10-04 05:35:19 +00:00
Ingo Schommer
90ff55870c MINOR make static caching smarter around cacheSubdirs (from r99076)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@106127 467b73ca-7a2a-4603-9d3b-597d59a354a9
2010-06-03 01:32:57 +00:00
Ingo Schommer
29292b865d BUGFIX: Don't rely on the current directory for any logic. (from r97727)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@102738 467b73ca-7a2a-4603-9d3b-597d59a354a9
2010-04-13 22:24:12 +00:00
Ingo Schommer
b367ecd2d4 API CHANGE: Added FilesystemPublisher::getExistingStaticCacheFiles(), to help build caching logic methods. (from r91354) (from r96810)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@102673 467b73ca-7a2a-4603-9d3b-597d59a354a9
2010-04-13 03:52:00 +00:00
Ingo Schommer
ae5cf37f2d 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
2010-04-13 03:26:37 +00:00
Ingo Schommer
2e61bec03d BUGFIX: Added rewriteHashlinks = 'php' option to SSViewer so that static publisher can handle internal hashlinks properly. (from r89612)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@90855 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-11-05 01:19:31 +00:00
Sam Minnee
8f783f0d30 BUGFIX: Set publication base_url on every URL, just in case it gets re-set by some rogue script (from r73510)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@88639 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-10-12 03:41:38 +00:00
Tom Rix
f1ab64fb50 ENHANCEMENT FilesystemPublisher no longer wipes out the whole cache, but removes pages that are not on the live site, but rebuilds the files one by one. It also now hooks into onAfterUnpublish() to remove files from the cache when they are removed from the CMS. If for some reason this fails, it will be picked up when a /dev/buildcache is done.
CHANGE default fileextension is now html (was null)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@82470 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-07-22 22:57:02 +00:00
Tom Rix
ac589ba236 ENHANCEMENT STaticPublisher can now play nice with Subsites, you just need to set FilesystemPublisher::domain_based_caching to true.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@81683 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-07-13 04:42:02 +00:00
Sam Minnee
923bf6e103 BUGFIX: Call parent::__construct() from FilesystemPublisher::__construct()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@81172 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-07-07 01:27:51 +00:00
Sam Minnee
5fd8cfd81d BUGFIX: Use increase_time_limit_to() and increase_memory_limit_to() for better safe-mode operation.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@80243 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-06-28 02:37:15 +00:00
Ingo Schommer
bcbdfe2a13 MINOR Documentation
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@71387 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-02-04 20:18:12 +00:00
Sam Minnee
79c4e170ff Bugfixes for recent staticpublisher importsD
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@68913 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-12-15 01:45:20 +00:00
Sam Minnee
ab776401db Static caching merges from dnc branch
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@68901 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-12-15 01:31:01 +00:00
Ingo Schommer
3c8e45f65a MINOR merged branches/2.3 into trunk
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@67466 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-12-04 22:38:58 +00:00
Will Rossiter
fe0ac4e990 Merged in pre-2.3-oct08 branch
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@66082 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-17 23:03:39 +00:00
Sam Minnee
6178a9838d Removed memory limit for publication
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@60886 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-08-17 22:26:00 +00:00
Sam Minnee
53d1676e59 Removed time-limit for publication process
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@60870 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-08-15 06:31:36 +00:00
Sam Minnee
387b5edd21 Merged changes from branches/2.2.2-assets:
Static publishing
Ability to lock down comments to logged-in members only

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@60470 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-08-12 02:59:27 +00:00