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/lib/Moebooru/CacheHelper.php
2013-10-26 18:06:58 -05:00

18 lines
465 B
PHP
Executable File

<?php
namespace Moebooru;
class CacheHelper
{
static public function expire(array $options = [])
{
\Rails::cache()->write('$cache_version', time());
}
static public function expire_tag_version()
{
# $tag_version is bumped when the type of a tag is changed in Tags, if
# a new tag is created, or if a tag's post_count becomes nonzero.
\Rails::cache()->write('$tag_version', time());
}
}