-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from rboyatt/list-caching-dev
Addition of cache store for results of queries to Talis Aspire
- Loading branch information
Showing
7 changed files
with
229 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace block_aspirelists\task; | ||
|
||
class expire_list_cache extends \core\task\scheduled_task { | ||
|
||
public function get_name() { | ||
return get_string('expirelisttask', 'block_aspirelists'); | ||
} | ||
|
||
public function execute() { | ||
// Somewhat crudely let's purge all keys from this cache | ||
$cache = \cache::make('block_aspirelists', 'aspirelists'); | ||
$cache->purge(); | ||
} | ||
} |
Oops, something went wrong.