Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Linking and unlinking objects thrown exception when cache is disabled #13

Closed
fruit opened this Issue · 0 comments

1 participant

@fruit
Owner

When cache is disabled, it is pointless to collect $tagName. Its needed tests on this issue.

#
# Class: sfCachetaggableDoctrineRecord
#
public function link ($alias, $ids, $now = false)
{
  $self = parent::link($alias, $ids, $now);

  $tagNames = $this->getTagNamesByAlias($alias, $ids);

  if ($tagNames)
  {
    sfCacheTaggingToolkit::getTaggingCache()->invalidateTags($tagNames);
  }

  return $self;
}
@fruit fruit closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.