Skip to content

Commit

Permalink
[TASK] Add __clone() to PathCacheEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryd committed Mar 5, 2016
1 parent db1aa45 commit a761184
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Classes/Cache/PathCacheEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ class PathCacheEntry {
/** @var int */
protected $rootPageId = 0;

/**
* Resets cache_id on cloning.
*/
public function __clone() {
$this->cacheId = '';
}

/**
* @return string
*/
Expand Down

0 comments on commit a761184

Please sign in to comment.