Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Commit

Permalink
[BUGFIX] Handle invalid cache entry
Browse files Browse the repository at this point in the history
  • Loading branch information
romm committed Sep 11, 2019
1 parent a944ff7 commit 5cd832a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Classes/Form/FormObject/FormObjectFactory.php
Expand Up @@ -214,9 +214,11 @@ protected function getStaticInstance($className)
if (false === isset($this->static[$cacheIdentifier])) {
$cacheInstance = $this->getCacheInstance();

if ($cacheInstance->has($cacheIdentifier)) {
$static = $cacheInstance->get($cacheIdentifier);
} else {
$static = $cacheInstance->has($cacheIdentifier)
? $cacheInstance->get($cacheIdentifier)
: null;

if (!$static instanceof FormObjectStatic) {
$static = $this->buildStaticInstance($className);
$static->getObjectHash();

Expand Down

0 comments on commit 5cd832a

Please sign in to comment.