New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
You are here: Foswiki>Tasks Web>Item12261 (05 Jul 2015, GeorgeClark)Edit Attach

Item12261: add developer section to System.PageCaching : rest requests, URL attributes to suppress caching

Priority: Urgent
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Engine
Component: FoswikiCache
Branches: master
Reported By: KipLubliner
Waiting For:
Last Change By: GeorgeClark
It seems that rest requests can be cached, but I don't see any code in that adds to the cache. So if I interpret this correctly, it seems that rest callbacks can choose to cache themselves. This seems useful and perhaps it should be documented. If not ready to declare this interface as 'stable', then it should not be added to Foswiki::Func and documented as an unstable API.

In addition, the special URL parameter that prevents requests from being cached should also be documented.

-- KipLubliner - 22 Nov 2012

It depends on how the rest script returns its results.

If it simply "return"s the results, the output gets passed to the Foswiki::writeCompletePage(), and the results are cached. If the handler returns an empty result or undef, then the handler is responsible for it's own output, and there is no caching.

-- GeorgeClark - 30 May 2014

ItemTemplate edit

Summary add developer section to PageCaching : rest requests, URL attributes to suppress caching
ReportedBy KipLubliner
Codebase trunk
SVN Range
AppliesTo Engine
Component FoswikiCache
Priority Urgent
CurrentState Closed
Checkins distro:4c8af20f5fd8
TargetRelease major
ReleasedIn 2.0.0
CheckinsOnBranches master
masterCheckins distro:4c8af20f5fd8
Topic revision: r5 - 05 Jul 2015, GeorgeClark - This page was cached on 27 May 2018 - 01:48.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy