1. 27 Mar, 2017 1 commit
  2. 14 Mar, 2017 1 commit
  3. 02 Mar, 2017 1 commit
    • Russell Smith's avatar
      MDL-45584 cache: Make identifiers part of the cache creation. · f3789f2f
      Russell Smith authored and Mark Nelson's avatar Mark Nelson committed
      It is now safe to cache a reference to a cache and expect consistent results.
      
      Changing identifiers altered cache results where a reference was
      held to the cache. Identifiers have been set to be cached with
      identifiers included so the caches are separate.
      
      As a consequence of this it was identified that invalidation events
      and identifiers don't easily work together as an event can't determine
      which identifiers should be used for cache invalidation.  So invalidation
      events have been made incompatible with identifiers being set.  No core
      code used this combination as it's not possible to understand any expected
      behaviour.
      
      Event invalidation for application and session caches was centralised to the same
      location.  The only difference was the name of the lastinvalidation variable. This
      improves support and consistency of invalidation code.
      f3789f2f
  4. 19 Jan, 2017 1 commit
  5. 16 Jan, 2017 1 commit
  6. 12 Jan, 2017 1 commit
  7. 11 Jan, 2017 1 commit
  8. 09 Jan, 2017 1 commit
  9. 06 Jan, 2017 1 commit
  10. 30 Nov, 2016 1 commit
  11. 28 Nov, 2016 1 commit
  12. 15 Nov, 2016 1 commit
  13. 04 Nov, 2016 2 commits
    • Dan Poltawski's avatar
      NOBUG: Fixed file access permissions · 6765172e
      Dan Poltawski authored
      6765172e
    • Andrew Nicols's avatar
      MDL-56748 cache: Removes cache definition instances in purge_store · 70aa00de
      Andrew Nicols authored
      Previously a purge_store was only purging caches but it was leaving a
      reference to the store instance for the cache definition.
      
      As a result, the cache was never cleared away correctly and, in cases
      where the cache store makes a TCP connection to a backend system, the
      number of open sockets was increasing for each store instance.
      
      After a complete purge, as found in the unit test reset, the cache
      definitions should be both purged and removed.
      
      This change should also lead to a drop in memory consumption for unit
      tests as there will no longer be references to unused definition stores.
      70aa00de
  14. 02 Nov, 2016 1 commit
  15. 31 Oct, 2016 2 commits
  16. 30 Oct, 2016 3 commits
    • Russell Smith's avatar
      MDL-56273 cache: Use cache initialise always. · a169739d
      Russell Smith authored
      purge_all() and purge_by_definition() look in the configuration
      for which caches are available and then creates them to purge them.
      The configuration stores the values used by initialise(), not
      initialise_unit_test_instance() and would therefore fail to purge
      all caches if they were not purged by another means.
      
      In the case of filestore, it's purged by unit tests, in the case
      of memcache(d), it purges the whole store when a single definition
      is requested.
      
      Therefore all configuration was moved into the configuration file
      during unit tests and does not have any special override codes in
      the unit test infrastructure.
      a169739d
    • Tomasz Sanecki's avatar
      fd7bb5a8
    • Russell Smith's avatar
      MDL-48468 cache: Import Redis cachestore · 68b1e130
      Russell Smith authored
      This code was originally taken from; https://github.com/durana/moodle-cachestore_redis
      Special thanks to Mark Nielsen and Adam Durana for their work on this.
      
      Since the original import;
      - Mode session support has been added.
      - Some cleanup of names has been made.
      - Data guarantee and references support was added.
      68b1e130
  17. 26 Oct, 2016 1 commit
  18. 21 Oct, 2016 2 commits
  19. 11 Oct, 2016 1 commit
  20. 07 Oct, 2016 1 commit
  21. 30 Sep, 2016 1 commit
  22. 23 Sep, 2016 1 commit
  23. 22 Sep, 2016 1 commit
  24. 20 Sep, 2016 1 commit
  25. 12 Sep, 2016 1 commit
    • Russell Smith's avatar
      MDL-55922 cache: Improve static cache performance · ec4b83b9
      Russell Smith authored
      Static cache has a very flexible storage capability
      and does not need all the checks performed on it.
      Enabling dereferencing handling and multiple identifiers
      removes a lot of unneeded overhead for request caches that
      have many get calls.
      
      The changes were modelled on the static acceleration changes
      done in MDL-53208.
      ec4b83b9
  26. 24 Aug, 2016 2 commits
    • David Monllaó's avatar
    • Russell Smith's avatar
      MDL-55604 cache: Fix identifier and cacheable_object · 7ff43e1a
      Russell Smith authored
      When a cachable object is store in the static cache from
      the backing store, it was incorrect serialised rather than
      using the wake function.  This has been resolved and tests added.
      
      During the investigation into cacheable_object, it was discovered
      that set_identifiers never removes identifiers when you call it,
      so set_identifiers(array('a')) and set_identifiers(array('b')) really
      resulted in array('a','b') as the identifiers rather than 'b'.
      
      The fix for this issue depends on the set_identifiers fix and
      they have been coupled together as a result.
      7ff43e1a
  27. 27 Jul, 2016 1 commit
  28. 26 Jul, 2016 2 commits
  29. 19 May, 2016 1 commit
  30. 29 Apr, 2016 1 commit
  31. 19 Apr, 2016 1 commit
  32. 18 Apr, 2016 2 commits