• I only want to optimize the CSS and JS code for shrinking the front end, I don’t want the cache files because when I delete the Autoptimize cache and rebuild it, the previous CSS and JS paths will be lost. I want these file paths to stay the same forever, so I don’t want cached files, any solutions please? Thanks!
    Also the plugin creates some PHP files under the cache and their names are randomized.

    • This topic was modified 3 weeks, 5 days ago by xu wu.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    thanks for the review! 🙂

    but I’m afraid not storing anything in cache/autoptimize is not possible xu wu; when it file is optimized (minified) it has to be stored and that’s where the cache is needed for. to be clear; the name of the files only changes when the unminified contents (the JS or CSS code) changed, so if you do not aggregate CSS/ JS, you will most of the times end up with the exact same filenames in cache/autoptimize/(except after Core or theme or plugin updates, because updates can include code changes, in which case the autoptimize filename can change).

    re. PHP files; if you (re-)enable “serve as static files” near the bottom of the main settings page (under “misc options”, no PHP files will be used (generally you would not want PHP to serve CSS/ JS)

    hope this helps/ clarifies,
    frank

    • This reply was modified 3 weeks, 5 days ago by Optimizing Matters. Reason: added info about .php files
    Thread Starter xu wu

    (@wuxu)

    Thanks for your reply, but I’m having a problem now. I deleted the plugin yesterday and now that I reinstalled it I want to try what you said. But after I check some options and click save or save and clear cache, the page refreshes and it says I didn’t check something? I’m not sure what’s happening. There is no error message in the developer tools.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    it says I didn’t check something

    OK, can you copy/ paste the exact error message?

    Thread Starter xu wu

    (@wuxu)

    Sorry, my description was incorrect.
    For example, I selected the option to optimize CSS separately, and then I clicked the save button of the plugin. The page started refreshing, but then the plugin page showed that I had not selected any options. I checked the cache file, but did not see any optimization. The plugin has no error prompts, and the developer tool also has no error messages.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    ah, that sounds like a problem with a stale persistant object cache (e.g. memcached or redis), ask you host to try flushing that maybe?

    Thread Starter xu wu

    (@wuxu)

    Yesterday I refreshed the cache and today I can select the selection and save it. Thank you,You’re a professional.


    May I ask what some PHP files in the /wp-content/cache/autoptimize directory do? Because one of my trusted search engines is crawling them and I don’t know what code on the front end of the page is revealing the address of these PHP files.

    /wp-content/cache/autoptimize/autoptimize_d41d8cd98f00b204e9800998ecf8427e.php

    /wp-content/cache/autoptimize/autoptimize_d41d8cd98f00b204e9800998ecf8427e.php.none

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    those PHP-files contain the logic to serve the CSS/ JS, the none-files contain the CSS/ JS. if you want to avoid this, you can re-enable the “serve as static files” option near the bottom of the main settings page if you prefer not to have those .php and .none files;

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this review.