1
0
mirror of https://github.com/typemill/typemill.git synced 2025-08-06 14:16:46 +02:00

Version 1.4.3: Register user functions,account-button, cleanup

This commit is contained in:
trendschau
2021-01-04 20:18:31 +01:00
parent cd8c67b5d1
commit 1f063a6778
20 changed files with 163 additions and 600 deletions

View File

@@ -10,6 +10,7 @@ use Typemill\Models\WriteMeta;
use \Symfony\Component\Yaml\Yaml;
use Typemill\Models\VersionCheck;
use Typemill\Models\Markdown;
use Typemill\Events\OnCacheUpdated;
use Typemill\Events\OnPagetreeLoaded;
use Typemill\Events\OnBreadcrumbLoaded;
use Typemill\Events\OnItemLoaded;
@@ -45,6 +46,12 @@ class PageController extends Controller
{
$structure = $this->getCachedStructure($cache);
}
else
{
# dispatch message that the cache has been refreshed
$this->c->dispatcher->dispatch('onCacheUpdated', new OnCacheUpdated(false));
}
if(!isset($structure) OR !$structure)
{
# if not, get a fresh structure of the content folder