Skip to content
Browse files

Cache strategy is important for identifier even without content cache

  • Loading branch information...
1 parent dd5bcf2 commit 27a526c7ea53785825c876dc8a87f4e33da79d62 @bergie bergie committed Jan 27, 2011
Showing with 4 additions and 5 deletions.
  1. +4 −5 request.php
View
9 request.php
@@ -378,8 +378,7 @@ public function get_identifier()
$identifier_source .= ';CONTENT=' . $this->route->template_aliases['content'];
}
- if ( isset($this->data['cache_enabled'])
- && $this->data['cache_enabled'])
+ if (isset($this->data['cache_strategy']))
{
switch ($this->data['cache_strategy'])
{
@@ -389,10 +388,10 @@ public function get_identifier()
break;
default:
// Per-user cache
- if ($_core->authentication->is_user())
+ if (midgardmvc_core::get_instance()->authentication->is_user())
{
- $user = $_core->authentication->get_person();
- $identifier_source .= ";USER={$user->username}";
+ $user = midgardmvc_core::get_instance()->authentication->get_user();
+ $identifier_source .= ";USER={$user->login}";
}
else
{

0 comments on commit 27a526c

Please sign in to comment.
Something went wrong with that request. Please try again.