Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-53771

New function that gets the refreshed wiki page contents for us

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.1
    • Fix Version/s: None
    • Component/s: Wiki (2.x)
    • Labels:
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_31_STABLE

      Description

      I've seen the following logic duplicated in core more than 10 times, we should create a new function, probably deciding about its name will be the hardest part.

      if ($page->timerendered + WIKI_REFRESH_CACHE_TIME < time()) {
          $fresh = wiki_refresh_cachedcontent($page);
          $page = $fresh['page'];
      }
      

      Would be nice if we could have this for 3.1 as search and external functions (MDL-53613 or MDL-53709 for example) are adding even more uses of it.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dmonllao David Monllaó
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: