protected function buildResourceTransformer()
protected function buildResourceTransformer()
Return
wild |
public function shouldRequireLogin()
public function shouldRequireLogin()
Return
wild |
public function shouldRequireEnabledUser()
public function shouldRequireEnabledUser()
Return
wild |
public function shouldAllowPartialSessions()
public function shouldAllowPartialSessions()
Return
wild |
public function shouldAllowLegallyNonCompliantUsers()
public function shouldAllowLegallyNonCompliantUsers()
Return
wild |
abstract public function getCelerityResourceMap()
abstract public function getCelerityResourceMap()
Return
wild |
protected function serveResource($spec)
protected function serveResource($spec)
Parameters
array | $spec |
Return
wild |
public static function getSupportedResourceTypes()
public static function getSupportedResourceTypes()
Return
wild |
private function makeResponseCacheable($response)
private function makeResponseCacheable($response)
Parameters
AphrontResponse | $response |
Return
wild |
private function isLocallyCacheableResourceType($type)
private function isLocallyCacheableResourceType($type)
Is it appropriate to cache the data for this resource type in the fast immutable cache?
Generally, text resources (which are small, and expensive to process) are cached, while other types of resources (which are large, and cheap to process) are not.
Parameters
string | $type | Resource type. |
Return
bool | True to enable caching. |
protected function getCacheKey($path)
protected function getCacheKey($path)
Parameters
$path |
Return
wild |