Beispiel #1
0
 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]);
 }
Beispiel #2
0
 protected function update_cache_on_create()
 {
     Moebooru\CacheHelper::expire_tag_version();
 }