diff options
author | Valentin Popov <info@valentineus.link> | 2018-02-19 12:15:14 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2018-02-19 12:15:14 +0300 |
commit | 95c4cf061ab67f28a12e34c0c7098ef5a73d353a (patch) | |
tree | 688b08cc0e3a3f536bd97da93a1ec4a05d25a7a7 /lib.php | |
parent | a1099245b573a3b2bc9ed4a7260e89813d64e138 (diff) | |
download | local_webhooks-95c4cf061ab67f28a12e34c0c7098ef5a73d353a.tar.xz local_webhooks-95c4cf061ab67f28a12e34c0c7098ef5a73d353a.zip |
Rename the function to reset the cache
Diffstat (limited to 'lib.php')
-rw-r--r-- | lib.php | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -128,7 +128,7 @@ function local_webhooks_create_record($record) { $result = $DB->insert_record("local_webhooks_service", $record, true, false); /* Clear the plugin cache */ - local_webhooks_cache_delete_all(); + local_webhooks_cache_reset(); /* Event notification */ local_webhooks_events::service_added($result); @@ -153,7 +153,7 @@ function local_webhooks_update_record($record) { $result = $DB->update_record("local_webhooks_service", $record, false); /* Clear the plugin cache */ - local_webhooks_cache_delete_all(); + local_webhooks_cache_reset(); /* Event notification */ local_webhooks_events::service_updated($record->id); @@ -173,7 +173,7 @@ function local_webhooks_delete_record($serviceid) { $result = $DB->delete_records("local_webhooks_service", array("id" => $serviceid)); /* Clear the plugin cache */ - local_webhooks_cache_delete_all(); + local_webhooks_cache_reset(); /* Event notification */ local_webhooks_events::service_deleted($serviceid); @@ -192,7 +192,7 @@ function local_webhooks_delete_all_records() { $result = $DB->delete_records("local_webhooks_service", null); /* Clear the plugin cache */ - local_webhooks_cache_delete_all(); + local_webhooks_cache_reset(); /* Event notification */ local_webhooks_events::service_deletedall(); |