This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
Sequenzia/app/models/Post/CacheMethods.php

14 lines
364 B
PHP
Raw Normal View History

2013-10-27 01:06:58 +02:00
<?php
namespace Post;
trait CacheMethods
{
public function expire_cache()
{
# Have to call this twice in order to expire tags that may have been removed
if ($this->old_cached_tags)
\Moebooru\CacheHelper::expire(['tags' => $this->old_cached_tags]);
\Moebooru\CacheHelper::expire(['tags' => $this->cached_tags]);
}
}