Skip to content

Commit

Permalink
MDL-22052 Improved help strings caching - dirty on-disk cache detection
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrd8mz committed Jun 28, 2010
1 parent 9047d80 commit ed8eb15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions help.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@
echo $OUTPUT->header();
}

if (!$sm->string_exists($identifier.'_help', $component)) {
// strings on-diskc cache may be dirty - try to rebuild it and check again
$sm->load_component_strings($component, current_language(), true);
}

if ($sm->string_exists($identifier.'_help', $component)) {
$options = new object;
$options->trusted = false;
Expand Down

0 comments on commit ed8eb15

Please sign in to comment.