You are here: Foswiki>Tasks Web>Item12261 (06 Nov 2018, MichaelDaum)Edit Attach

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

pencil
Priority: Urgent
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Engine
Component: PageCache
Branches: master
Reported By: KipLubliner
Waiting For:
Last Change By: MichaelDaum
It seems that rest requests can be cached, but I don't see any code in Rest.pm 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 PageCache
Priority Urgent
CurrentState Closed
WaitingFor
Checkins distro:4c8af20f5fd8
TargetRelease major
ReleasedIn 2.0.0
CheckinsOnBranches master
trunkCheckins
masterCheckins distro:4c8af20f5fd8
ItemBranchCheckins
Release01x01Checkins
Topic revision: r6 - 06 Nov 2018, MichaelDaum
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