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

Closed
fruit opened this Issue Apr 5, 2011 · 0 comments

Projects

None yet

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 Apr 5, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment