Version 5.0.0 beta 10

This commit is contained in:
Neo committed 2025-12-19 17:53:48 -08:00
1 parent 56979f8ee8
commit 264eeb97e0
325 files changed
+6442 -1849

No files matched your search

+11 -1
View File
@@ -1366,7 +1366,17 @@ abstract class Widget
}
$caches[ $cacheKey ] = time();
Db::i()->update( 'core_widgets', array( 'caches' => json_encode( $caches ) ), static::_buildWhere( $this->key, $this->app ) );
$keyForCacheStore = $this->key;
if( in_array( Polymorphic::class, class_implements( $this ) ) )
{
/* @var Polymorphic $widgetClass */
$widgetClass = get_class( $this );
$keyForCacheStore = $widgetClass::getBaseKey();
}
Db::i()->update( 'core_widgets', array( 'caches' => json_encode( $caches ) ), static::_buildWhere( $keyForCacheStore, $this->app ) );
}
/* Then use what the store has */