Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Purge current page cache on front end
Change hook from 'admin_init' to 'admin_bar_init' so that purge_all() is called when purge button is clicked on both admin dashboard and front end admin bar. Check if the user is on front end when set the call purge_url() and purge the current page cache on case basis.
- Loading branch information
1 parent
66c2f5b
commit b2c2cbe
Showing
2 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters