Permalink
Browse files

Minor fix to sfCacheTaggingToolkit::obtainCollectionVersion that was …

…volatile until the tags were saved.
  • Loading branch information...
1 parent 8211962 commit 19d14b96101afd0989c7b7e82272137fbbbcee59 @paulkmoore paulkmoore committed Jan 31, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/util/sfCacheTaggingToolkit.class.php
@@ -284,6 +284,9 @@ public static function obtainCollectionVersion ($collectionVersionName)
if (null === $collectionVersion)
{
$collectionVersion = self::generateVersion();
+ // Set the generated version in the cache so that subsequent calls to
+ // obtainCollectionVersion return a consistent value
+ self::getTaggingCache()->setTag($collectionVersionName, $collectionVersion);
}
return $collectionVersion;

0 comments on commit 19d14b9

Please sign in to comment.