# fluent-community/2.7.0/app/Hooks/Handlers/DeactivationHandler.php

FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS &amp; Online Courses, version 2.7.0. 28 lines.

- Page: https://pluginprobe.com/plugins/fluent-community/2.7.0/code/app/Hooks/Handlers/DeactivationHandler.php
- Raw: https://pluginprobe.com/plugins/fluent-community/2.7.0/raw/app/Hooks/Handlers/DeactivationHandler.php
- Modified: 2024-11-07T12:38:44+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-community/2.7.0/code/app/Hooks/Handlers/DeactivationHandler.php#L10-L20`.

```php
<?php

namespace FluentCommunity\App\Hooks\Handlers;

use FluentCommunity\Framework\Foundation\Application;

class DeactivationHandler
{
    protected $app = null;

    public function __construct(Application $app)
    {
        $this->app = $app;
    }

    public function handle()
    {
        if (function_exists('\as_unschedule_all_actions')) {
            \as_unschedule_all_actions('fluent_community_scheduled_hour_jobs');
            \as_unschedule_all_actions('fluent_community_daily_jobs');
        }

        if(function_exists('wp_cache_flush_group') && wp_cache_supports( 'flush_group' )) {
            wp_cache_flush_group('fluent_community');
        }
    }
}

```
