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

Interface cacheable_object is ignored if it is inside array

    XMLWordPrintable

    Details

      Description

      When caching an array of cacheable_objects, they are cached as if they are normal classes, without initialising cache_cached_object and calling prepare_to_cache() and wake_from_cache()

      It is possible of course to do a workaround by creating another cacheable_object that would contain just a list. But it would be so awesome if cache::set and cache::get were checking for chacheable_object's recursively

        Attachments

          Activity

            People

            Assignee:
            samhemelryk Sam Hemelryk
            Reporter:
            marina Marina Glancy
            Integrator:
            Damyon Wiese
            Participants:
            Component watchers:
            Matteo Scaramuccia, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              14/May/13