Skip to content

Commit

Permalink
Delete cached object
Browse files Browse the repository at this point in the history
  • Loading branch information
lianglee committed Feb 2, 2024
1 parent 900030c commit 984137d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions classes/OssnObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,12 @@ public function deleteObject($object = '') {
"guid='{$object}'",
);
if($this->delete($delete)) {
//caching
//invalidate
$cache = new OssnDynamicCaching();
if($cache->isAvailableEnabled()) {
$cache->handler()->delete("OssnObject->getObjectById():guid={$object}");
}
ossn_trigger_callback('object', 'deleted', $vars);
return true;
}
Expand Down

0 comments on commit 984137d

Please sign in to comment.