<commit_before><?php

namespace TypiCMS\Modules\Core\Traits;

use Illuminate\Support\Facades\Artisan;

trait HtmlCacheEvents
{
    /**
     * Event to delete files in public/html folder.
     *
     * @return void
     */
    public static function boot()
    {
        parent::boot();

        if (config('typicms.html_cache')) {
            static::saved(function ($model) {
                Artisan::call('clear-html');
            });

            static::deleted(function ($model) {
                Artisan::call('clear-html');
            });
        }<commit_msg>Update HtmlCacheEvents.php<commit_after><?php

namespace TypiCMS\Modules\Core\Traits;

use Illuminate\Support\Facades\Artisan;

trait HtmlCacheEvents
{
    /**
     * Event to delete files in public/html folder.
     *
     * @return void
     */
    public static function bootHtmlCacheEvents()
    {
        if (config('typicms.html_cache')) {
            static::saved(function ($model) {
                Artisan::call('clear-html');
            });

            static::deleted(function ($model) {
                Artisan::call('clear-html');
            });
        }
{'fraction_non_alphanumeric': 0.13321647677475898, 'fraction_numerical': 0.0, 'mean_word_length': 1.9817232375979112, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1660847', 'n_tokens_mistral': 327, 'n_tokens_neox': 328, 'n_words': 58}