• I’m trying to setup minify for my css files using memcached. The minify file appears correctly in the source and if I hit the url directly:
    https://mydomain/us/wp-content/plugins/w3-total-cache/pub/minify.php?file=846be/default.include.676f1f.css

    The issue, I can’t get the file= to update when I change what css files are being included in minify. I’ve tried adding/removing css files from the css file management. I’ve tried ‘update media query string’ and ‘empty all cache’. I did see if I paste the minify.php url into my browser and change 676f1f.css to 676f1e.css, or really any other identifier, I see the updates I’ve made. Why is wordpress/w3 total cache not changing the minify url when I update and save changes?

    WordPress: 4.2.2
    W3 Total Cache: 0.9.4.1

    Browser Cache: Setup w/ ‘Prevent caching of objects after settings change’. Query string changes and works as expected for page cache and resources when not using minify.

    https://www.ads-software.com/plugins/w3-total-cache/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter jdian

    (@jdian)

    Bump

    You should be using Disk Based caching for Page Cache and Minify Cache. Otherwise its going to cause problems and might cause cache slams in the event of large traffic convert it to Disk.

    Thread Starter jdian

    (@jdian)

    We have multiple prod servers to handle our traffic which kills the idea of Disk based anything. Disk based cache would lag from server to server or when a post is updated would only be cleared on 1 server, not the entire prod array.

    Thread Starter jdian

    (@jdian)

    lib\Minify\Minify\Cache\Memcache.php
    isValid() always returns true, thus the memcache never gets cleared. If I manually return false for this function everything works. Need to investigate next why this function never returns false even though I empty all caches.

    Thread Starter jdian

    (@jdian)

    I now believe this has to do w/ the function analyzeSources in \lib\Minify\Minify\Controller\Base.php.

    Basically, it goes through all of the files you are minifying and checks the timestamp. If a file has been updated, it then regenerates the minify. Otherwise it doesn’t.

    It looks like clearing the cache doesn’t affect minify. The only way I’ve found to update the minify cache is by updating a file referenced to be minified.

    Workaround: Add a white space to a file you set to be minified, save, should be good to go.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Minify, memcached and not updating query string’ is closed to new replies.