{"id":29558,"date":"2019-01-03T14:29:28","date_gmt":"2019-01-03T16:29:28","guid":{"rendered":"https:\/\/powertic.com\/pt-br\/?post_type=kb&amp;p=29558"},"modified":"2019-01-03T14:29:28","modified_gmt":"2019-01-03T16:29:28","slug":"corrigindo-o-cache-do-mautic","status":"publish","type":"kb","link":"https:\/\/powertic.com\/pt-br\/kb\/corrigindo-o-cache-do-mautic\/","title":{"rendered":"Corrigindo o Cache do Mautic"},"content":{"rendered":"<p>Voc\u00ea pode simplesmente remover a pasta&nbsp;app\/cache&nbsp;do Mautic para que o cache seja removido e refeito.<\/p>\n\n\n\n<p>O pr\u00f3prio Mautic oferece dois comandos que fazem todo o trabalho de limpeza e aquecimento do cache. Recomendo que voc\u00ea utilize estes dois comandos:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">rm -rf app\/cache<br>php app\/console cache:clear<br>php app\/console cache:warmup<br><\/pre>\n\n\n\n<p>O comando abaixo reflete a maioria das instala\u00e7\u00f5es do Mautic no Debian\/Ubuntu utilizando Apache ou NGINX:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">chown -R www-data:www-data .<br>chmod -R g+rw .<\/pre>\n\n\n\n<p>O que fizemos no primeiro comando foi ajustar ao propriet\u00e1rio dos arquivos de modo recursivo <strong><em>-R<\/em><\/strong> para o usu\u00e1rio e o grupo <strong>www-data<\/strong>, que \u00e9 o respons\u00e1vel por executar o PHP atrav\u00e9s do seu servidor web.<\/p>\n\n\n\n<p>O segundo comando modifica as permiss\u00f5es de acesso aos arquivos dizendo que o grupo www-data tem acesso de escrita e leitura.<\/p>\n\n\n\n<p>Caso queira conhecer melhor o cache do Mautic, veja nosso artigo&nbsp;<a href=\"https:\/\/powertic.com\/pt-br\/blog\/limpeza-permissoes-do-cache-do-mautic\/\">Cache do Mautic: Fa\u00e7a a Limpeza e ajuste as Permiss\u00f5es<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Voc\u00ea pode simplesmente remover a pasta&nbsp;app\/cache&nbsp;do Mautic para que o cache seja removido e refeito. O pr\u00f3prio Mautic oferece dois comandos que fazem todo o&hellip;<\/p>","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"kbtopic":[3492],"kbtag":[],"class_list":["post-29558","kb","type-kb","status-publish","hentry","kbtopic-configuracoes-mautic"],"_links":{"self":[{"href":"https:\/\/powertic.com\/pt-br\/wp-json\/wp\/v2\/kb\/29558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/powertic.com\/pt-br\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/powertic.com\/pt-br\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/powertic.com\/pt-br\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/powertic.com\/pt-br\/wp-json\/wp\/v2\/comments?post=29558"}],"version-history":[{"count":0,"href":"https:\/\/powertic.com\/pt-br\/wp-json\/wp\/v2\/kb\/29558\/revisions"}],"wp:attachment":[{"href":"https:\/\/powertic.com\/pt-br\/wp-json\/wp\/v2\/media?parent=29558"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/powertic.com\/pt-br\/wp-json\/wp\/v2\/kbtopic?post=29558"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/powertic.com\/pt-br\/wp-json\/wp\/v2\/kbtag?post=29558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}