Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

staticpublisher: cache when page visited, not saved


Go to End


4 Posts   1695 Views

Avatar
DeklinKelly

Community Member, 197 Posts

13 August 2010 at 4:48am

I would like a page to be cached when it is accessed, not when it is saved.

Avatar
Willr

Forum Moderator, 5523 Posts

13 August 2010 at 3:58pm

I don't think you'll be able to do that. SS will get stuck in a violent loop if you say 'Only cache a page when you visit it, but in order to 'cache' it the filesystem publisher loads the page. You would need to perform quite a bit of custom code from FilesystemPublisher to get it working I think.

You may be better off trying partial caching.

Avatar
px

Community Member, 10 Posts

9 September 2010 at 1:08am

in relation to this... I would like to ask where does the cached page saved?

Avatar
TotalNet

Community Member, 181 Posts

9 September 2010 at 9:41am

It goes wherever you specify in the setup http://doc.silverstripe.org/staticpublisher#setup
relative to the installation location of SilverStripe.