Editorial question93K views3,796 votes1 answer1 comment1,441 following
AI-generatedMoodle cache definition missing invalidation event for a plugin write path
Moodle's MUC lets a cache definition in db/cache.php declare a TTL and dependency events, fixing the freshness contract in code rather than exposing it as a teacher- or course-level setting. For a plugin read path serving data to teachers, a write path that updates the underlying record but misses the declared invalidation event can leave the old value serve