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
    • Servidores
  • Redis

Redis · Changes

Page history
Create Servidores/Redis authored Mar 27, 2019 by Jonatan Machado's avatar Jonatan Machado
Hide whitespace changes
Inline Side-by-side
Showing with 13 additions and 0 deletions
+13 -0
  • Servidores/Redis.md Servidores/Redis.md +13 -0
  • No files found.
Servidores/Redis.md 0 → 100644
View page @ 06d30a4e
Adicionei uma nova funçao para limpar o cache cada vez que roda essas funçoes do w3 total cache iso pode ser adicionado em qualquer site que usa wordpres com o redis + w3 total cache
```
//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' );
function flush_redis_save_post()
{
w3tc_flush_all();
}
`````
\ No newline at end of file
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