mirror of
https://github.com/pelican-dev/panel.git
synced 2025-11-08 10:39:27 +01:00
remove sushi caching
didn't work properly
This commit is contained in:
parent
7365f3efdb
commit
91f88daaa3
@ -177,11 +177,6 @@ class Plugin extends Model implements HasPluginSettings
|
||||
return $plugins;
|
||||
}
|
||||
|
||||
protected function sushiShouldCache(): bool
|
||||
{
|
||||
return !Plugins::isDevModeActive();
|
||||
}
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
|
||||
@ -316,12 +316,6 @@ class PluginService
|
||||
$pluginData['meta'] = $metaData;
|
||||
|
||||
File::put($path, json_encode($pluginData, JSON_THROW_ON_ERROR | JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
|
||||
|
||||
if (!$this->isDevModeActive()) {
|
||||
// Update model to rebuild sushi cache
|
||||
$plugin = !$plugin instanceof Plugin ? Plugin::findOrFail($plugin) : $plugin;
|
||||
$plugin->update($metaData);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user