<commit_before><?php
use \DF\Phalcon\Cli\Task;
use \PVL\SyncManager;

class CacheTask extends Task
{
    public function clearAction()
    {
        // Flush local cache.
        \DF\Cache::clean();

        $this->printLn('Local cache flushed.');

        // Flush CloudFlare cache.
        if (DF_APPLICATION_ENV != 'production') {
            $apis = $this->config->apis->toArray();
            if (isset($apis['cloudflare'])) {
                $url_base = 'https://www.cloudflare.com/api_json.html';
                $url_params = array(
                    'tkn' => $apis['cloudflare']['api_key'],<commit_msg>Only flush Cloudflare on remote push.<commit_after><?php
use \DF\Phalcon\Cli\Task;
use \PVL\SyncManager;

class CacheTask extends Task
{
    public function clearAction()
    {
        // Flush local cache.
        \DF\Cache::clean();

        $this->printLn('Local cache flushed.');

        // Flush CloudFlare cache.
        if (DF_APPLICATION_ENV == 'production') {
            $apis = $this->config->apis->toArray();
            if (isset($apis['cloudflare'])) {
                $url_base = 'https://www.cloudflare.com/api_json.html';
                $url_params = array(
                    'tkn' => $apis['cloudflare']['api_key'],
{'fraction_non_alphanumeric': 0.156, 'fraction_numerical': 0.0, 'mean_word_length': 2.119700748129676, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '5197884', 'n_tokens_mistral': 392, 'n_tokens_neox': 370, 'n_words': 74}