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]);
}
}