Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Purge Cache menu caching issue in the front-end #173

Merged
merged 5 commits into from
Feb 25, 2019

Commits on Feb 12, 2019

  1. Change Purge Cache button name and 'nginx-helper_urls' query argument…

    … value on front-end admin bar.
    
    Conditionally display the purge cache button name as 'Purge Cache' for admin dashboard and 'Purge Current Page' on front-end admin bar.
    Conditionally set query argument 'nginx_helper_urls' value to 'all' for admin dashaboard purge cache button and 'current-url' for front-end admin bar button
    imranhsayed committed Feb 12, 2019
    Configuration menu
    Copy the full SHA
    66c2f5b View commit details
    Browse the repository at this point in the history
  2. 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.
    imranhsayed committed Feb 12, 2019
    Configuration menu
    Copy the full SHA
    b2c2cbe View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a270388 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    257be95 View commit details
    Browse the repository at this point in the history

Commits on Feb 25, 2019

  1. Put correct value for meta key and remove escaping where not required

    Put the correct value for the 'meta key' of add_menu() and remove escaping from purge_url() on line 688 as already escaped at the end
    imranhsayed committed Feb 25, 2019
    Configuration menu
    Copy the full SHA
    57f094f View commit details
    Browse the repository at this point in the history