Delete Web Page Cache in CI4 |
The Cache class has a delete method.
You can get a reference to the Cache class anytime using PHP Code: $cache = Services::cache(); The delete method takes a string argument that is the cached item name. PHP Code: $cache->delete($key); The hard part, for which I have no answer, is how do you determine the value of $key. |
Messages In This Thread |
Delete Web Page Cache in CI4 - by benjaminbellamy - 06-18-2020, 05:55 AM
RE: Delete Web Page Cache in CI4 - by dave friend - 06-18-2020, 07:52 PM
RE: Delete Web Page Cache in CI4 - by jreklund - 06-19-2020, 03:07 AM
|