Skip to content

Instantly share code, notes, and snippets.

@katzueno
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save katzueno/80b097ccc2220a1dc76f to your computer and use it in GitHub Desktop.
Save katzueno/80b097ccc2220a1dc76f to your computer and use it in GitHub Desktop.
web/concrete/core/libraries/page_cache/library.php
public function getCacheKey($mixed) {
if ($mixed instanceof Page) {
return urlencode(trim($mixed->cID, '/'));
} else if ($mixed instanceof Request) {
return urlencode(trim($mixed->cID, '/'));
} else if ($mixed instanceof PageCacheRecord) {
return $mixed->getCacheRecordKey();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment