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: PageCache
Branches: master
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