Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
W Wiki
  • Project overview
    • Project overview
    • Details
    • Activity
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
Collapse sidebar
  • Tutoriais
  • Wiki
  • Wiki
    • Wordpress
  • Checklist CEICOM

Checklist CEICOM · Changes

Page history
Update Checklist CEICOM authored Jun 07, 2019 by Keller Kichel's avatar Keller Kichel
Hide whitespace changes
Inline Side-by-side
Showing with 20 additions and 0 deletions
+20 -0
  • Wordpress/Checklist-CEICOM.md Wordpress/Checklist-CEICOM.md +20 -0
  • No files found.
Wordpress/Checklist-CEICOM.md
View page @ afb91104
......@@ -144,6 +144,26 @@ Ao iniciar um novo projeto, aplicar o seguinte [htacess](Wordpress/Htaccess)
- Desenvolva funcionalidades do tema criando novos typepost programando ou utilize o Custom Post Type UI.
- Estruture tudo dentro de pastas com a estrutura nomenclatura fácil de entender e achar os arquivos.
## Cache
Impelementar a seguinte função no ```functions.php``` sempre que um thema utilize o **"W3 Total Cache"**
```
function check_plugin_w3tc_state(){
if (is_plugin_active('w3-total-cache/w3-total-cache.php')){
//Limpa todo o cache do redis qundo faz algumas dessas açoes 'save, delete, trash'
add_action( 'save_post', 'flush_redis_save_post' );
add_action( 'delete_post', 'flush_redis_save_post' );
add_action( 'trash_post', 'flush_redis_save_post' );
add_action( 'wp_trash_post', 'flush_redis_save_post' );
function flush_redis_save_post()
{
w3tc_flush_all();
}
}
}
add_action('admin_init', 'check_plugin_w3tc_state');
```
## Arquivos desnecessário devem ser deletados.
- /wp-config-sample.php
- /readme.html
......
Clone repository
  • Gitlab
    • Comandos
  • Hotfix
    • og:image
  • Magento
    • Htaccess
    • MagentoCronChecker
    • Robots
    • SimpleSchema
    • Soap v2 Tester
    • gitignore
  • Migração
    • leg.br
  • Padrões
    • eslint
    • prettier
  • Plugins
    • Adicionar informações extras ao texto copiado da web
  • QueryCommerce
  • Servidores
    • Cloudways
    • DnsMadeEasy
View All Pages