| @@ -6,8 +6,9 @@ | ||
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | namespace Activitypub\Cli; |
| 9 | 9 | |
| 10 | +use Activitypub\Cache; | |
| 10 | 11 | use Activitypub\Cache\Avatar; |
| 11 | 12 | use Activitypub\Cache\Emoji; |
| 12 | 13 | use Activitypub\Cache\File; |
| 13 | 14 | use Activitypub\Cache\Media; |
| @@ -263,9 +264,9 @@ | ||
| 263 | 264 | * @return bool True if enabled. |
| 264 | 265 | */ |
| 265 | 266 | private function is_cache_enabled( $type ) { |
| 266 | 267 | // Check global cache enablement (includes constant and activitypub_remote_cache_enabled filter). |
| 267 | - if ( ! \Activitypub\Cache::is_enabled() ) { | |
| 268 | + if ( ! Cache::is_enabled() ) { | |
| 268 | 269 | return false; |
| 269 | 270 | } |
| 270 | 271 | |
| 271 | 272 | // Check type-specific filter. |