Changeset View
Changeset View
Standalone View
Standalone View
src/applications/celerity/controller/CelerityResourceController.php
| Show First 20 Lines • Show All 158 Lines • ▼ Show 20 Lines | private function isCacheableResourceType($type) { | ||||
| $types = array( | $types = array( | ||||
| 'js' => true, | 'js' => true, | ||||
| 'css' => true, | 'css' => true, | ||||
| ); | ); | ||||
| return isset($types[$type]); | return isset($types[$type]); | ||||
| } | } | ||||
| private function getCacheKey($path) { | protected function getCacheKey($path) { | ||||
| return 'celerity:'.PhabricatorHash::digestToLength($path, 64); | return 'celerity:'.PhabricatorHash::digestToLength($path, 64); | ||||
| } | } | ||||
| } | } | ||||