AsgardCms/Core

View on GitHub
Support/SupportsCacheTags.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php namespace Modules\Core\Support;

trait SupportsCacheTags
{
    /**
     * Checks if the cache tags functionality is supported with the current driver
     * @return bool
     */
    public function cacheTagsAreSupported()
    {
        return !in_array(config('cache.default'), ['file', 'database']);
    }
}