WordPress.org

Forums

Dependency Minification
[resolved] Not working Purge and Expire options (12 posts)

  1. Air.
    Member
    Posted 1 year ago #

    When I hit under each Dependency Purge or Expire it does nothing. When I will do bulk action on all Dependencies then it pretends it is working.
    It pretends cause all Dependencies are removed, but when they are recreated, they are made from old files, like they were never removed.

    How to show this?

    1. In http://demo4.csshover.pl/wordpress/wp-content/themes/twentythirteen/js/functions.js I have added
    alert('shouldn\'t be here');
    2. Activated plugin
    3. Commented out alert by //alert('shouldn\'t be here');
    4. Used Purge on all Dependencies
    5. After few refreshes I could see alert message once again.

    You can see it here http://demo4.csshover.pl/layout-center-2/

    If you need I will give you access to my test site.

    Hope that helps.

    With regards.

    http://wordpress.org/plugins/dependency-minification/

  2. Air.
    Member
    Posted 1 year ago #

    My wordpress installation when this occurs is configured like this:
    WordPress Address (URL): http://demo4.csshover.pl/wordpress
    Site Address (URL): http://demo4.csshover.pl
    Maybe this has any effect on plugin.

    I have tested this again on other wordpress installation(same server) where both above values are the same, but then I faced such issue

    When doing Purge or Expire I see warning:

    Warning: Invalid argument supplied for foreach() in /home/apollo13/ftp/dev/superior/wp-content/plugins/dependency-minification/dependency-minification.php on line 221

    Dumping of $_REQUEST['depmin_option_name'] showed
    string(45) "depmin_cache_bbc185969f89a8de4096315ba8109617"

    dependency-minification.php on line 221
    foreach ( $_REQUEST['depmin_option_name'] as $option_name ) {
    changing to
    foreach ( (array)$_REQUEST['depmin_option_name'] as $option_name ) {
    Casting to array saves the day:-)

  3. Air.
    Member
    Posted 1 year ago #

    5. After few refreshes I could see alert message once again.

    Now I can't see alert any more. So hard to say what happened since I posted this. Still Purge or Expire actions does nothing.

    With regards.

  4. Weston Ruter
    Member
    Plugin Author

    Posted 1 year ago #

    Do you have other caching plugins installed?

  5. Air.
    Member
    Posted 1 year ago #

    Nope I don't have. As I advice on my forum I switched off every plugin before reporting any issue :-)

    If you need I will gave you access so you could test by your self.

    With regards.

  6. lkraav
    Member
    Plugin Contributor

    Posted 1 year ago #

    Weston, this report is real, seeing the same thing.

    FWIW I'm seeing this on PHP 5.2 right now. Haven't investigated on 5.5.

  7. Weston Ruter
    Member
    Plugin Author

    Posted 1 year ago #

    ikraav: if you can get to the bottom of it, that would be awesome. I've got a lot on my plate right now with other projects and won't have a chance to look a this for a few days.

  8. lkraav
    Member
    Plugin Contributor

    Posted 1 year ago #

    Not likely. Had to get strpos based exclude working for this one project and that's about all I got for this at the moment.

    But no worries, this is the one minification plugin I care about, since looking at the code of all the others mostly makes you want to throw up. We'll get to it all soon enough, 100% guaranteed.

  9. Weston Ruter
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry for the delay on this thread. Is there still an issue here with the latest version of Dependency Minification?

  10. Air.
    Member
    Posted 1 year ago #

    Checked this with version 0.9.7 and still single Expire or Purge does nothing. Mass Purge only helps.
    It is strange that I am only having such issues.
    I would debug it, but now I have to put all my time to finish deadline, so I can only give you access to it via WP and FTP if needed.

    With regards.

  11. Weston Ruter
    Member
    Plugin Author

    Posted 1 year ago #

    @Air: I've just released v0.9.8 of the plugin, and this includes a fix for the broken Purge and Expire links.

    For the curious, this is what the fix involved:
    https://github.com/x-team/wp-dependency-minification/commit/4fbe1b1bc387117701e138fd5d435e7b6de6e0bc

  12. Air.
    Member
    Posted 1 year ago #

    Yes this works now for me:-)

    Nice, good job.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Dependency Minification
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.