Skip to content

Commit

Permalink
Perhaps with more clears?
Browse files Browse the repository at this point in the history
  • Loading branch information
BelleNottelling committed Apr 20, 2024
1 parent a6977da commit e5b44f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/MarkdownTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public function testMarkdownIsFast(): void
$currentConfig = Config::currentConfig();

//Ensure cache is enabled
clearstatcache();
$currentConfig['cacheMode'] = 'auto';
Config::saveConfig($currentConfig);
clearstatcache();
Expand All @@ -47,6 +48,7 @@ public function testMarkdownCacheWorks(): void
$currentConfig = Config::currentConfig();

//Disable cache
clearstatcache();
$currentConfig['cacheMode'] = 'none';
Config::saveConfig($currentConfig);
clearstatcache();
Expand All @@ -62,6 +64,7 @@ public function testMarkdownCacheWorks(): void
$withoutCache = $totalTime / 10;

//Enable cache
clearstatcache();
$currentConfig['cacheMode'] = 'auto';
Config::saveConfig($currentConfig);
clearstatcache();
Expand Down

0 comments on commit e5b44f3

Please sign in to comment.