Sequenzia/app/models/Post/CacheMethods.php
2013-10-26 18:06:58 -05:00

14 lines
364 B
PHP
Executable File

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