Title: CSS not loading when running backoffice import routine
Last modified: July 29, 2020

---

# CSS not loading when running backoffice import routine

 *  Resolved [willjames](https://wordpress.org/support/users/willjames/)
 * (@willjames)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/css-not-loading-when-running-backoffice-import-routine/)
 * Hi
    Thanks for the plugin – works really well for us. When the system is importing
   inventory (which I usually try to do overnight, but sometimes I have to run manually)
   the page loads without any css. With AO turned off, the site runs a little slower,
   but everything still loads OK on the page (it is the same with all pages, not
   just this one). Many thanks for your help.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcss-not-loading-when-running-backoffice-import-routine%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/css-not-loading-when-running-backoffice-import-routine/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/css-not-loading-when-running-backoffice-import-routine/page/2/?output_format=md)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/css-not-loading-when-running-backoffice-import-routine/#post-13184275)
 * when doing the import:
    1. is the page cache cleared/ disabled? 2. is there a
   very high load on the server (cpu/ mem)? 3. does the full CSS 404 (not found)
   or is it empty or wrong or …? 4. does ticking the “404 fallback” option change
   anything?
 * frank
 *  Thread Starter [willjames](https://wordpress.org/support/users/willjames/)
 * (@willjames)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/css-not-loading-when-running-backoffice-import-routine/#post-13185005)
 * 1. I have tried clearing the cache when importing – no difference
    2. cpu max
   20% mem max 32% vs 7% & 23% without it running 3. Nearly all content appears (
   except footer) but none of the styling is there – it is just oddly formatted 
   text 4. this changes nothing
 * I can run it for you at some point if this helps?
 * Thanks
 * Jason
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/css-not-loading-when-running-backoffice-import-routine/#post-13185076)
 * for starters maybe run the importer while doing a couple of tests on webpagetest.
   org to try to capture what is happening and share the resulting webpagestest 
   URL’s here? that way you don’t depend on my presence.
 * also interesting question: when/ how does this get fixed?
 *  Thread Starter [willjames](https://wordpress.org/support/users/willjames/)
 * (@willjames)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/css-not-loading-when-running-backoffice-import-routine/#post-13185152)
 * [https://www.webpagetest.org/result/200729_D8_1a7cc7e5b2177c5c73ed63ec558f24ef/](https://www.webpagetest.org/result/200729_D8_1a7cc7e5b2177c5c73ed63ec558f24ef/)
   withit running
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/css-not-loading-when-running-backoffice-import-routine/#post-13185281)
 * Very weird; [https://www.truckpages.co.uk/wp-content/cache/autoptimize/css/autoptimize_c5f7bbda16eb1ec6e198fbf55567d4a5.css](https://www.truckpages.co.uk/wp-content/cache/autoptimize/css/autoptimize_c5f7bbda16eb1ec6e198fbf55567d4a5.css)
   loads OK in the first test and in the 2nd repeat test, but the exact same (static)
   file does not load in the other tests. Likewise the autoptimized JS-file sometimes
   loads but sometimes does not.
 * Now these are static files, AO writes them to the cache directory and then it’s
   up to the webserver to serve them tens or hundreds or thousands of times without
   AO having to intervene. Only when an page is requested that is not in the page
   cache (or not fresh), AO kicks in again and will either create new files (if 
   things changed) or simply re-use cached files.
 * Based on what I’m seeing in the webpagetest-results either:
    * there is a problem
   with the webserver not being able to “see” the files * or something (the import
   process) is removing the autoptimize cache
 * Can you contact the developers of the import process to hear if they do anything
   insdie `wp-content/cache` either directly on filesystem level or using PHP-code
   hooking into Autoptimize?
 *  Thread Starter [willjames](https://wordpress.org/support/users/willjames/)
 * (@willjames)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/css-not-loading-when-running-backoffice-import-routine/#post-13185545)
 * Do you think a CDN would help here?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/css-not-loading-when-running-backoffice-import-routine/#post-13185592)
 * It might; a file that is removed from the server is (generally) not removed from
   the CDN + the CDN is not impacted by anything running on the server (the import).
   So yeah, could be worth a try.
 * I would still check with the developers of the import mechanism though 🙂
 *  Thread Starter [willjames](https://wordpress.org/support/users/willjames/)
 * (@willjames)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/css-not-loading-when-running-backoffice-import-routine/#post-13194296)
 * Hi
    CDN did not help here – will get on to sofly who make the WP AllImport plugin
   Thanks
 *  Thread Starter [willjames](https://wordpress.org/support/users/willjames/)
 * (@willjames)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/css-not-loading-when-running-backoffice-import-routine/#post-13214152)
 * Hi this is what they said, but I guess it doesn’t help?
 * The only method to clearing cache that we have in WP All Import would be opt-
   in (using our “wp_all_import_reset_cache_before_import” filter), and even enabling
   that doesn’t result in the cache files being cleared.
 * The only thing I can think of is that while WP All Import itself isn’t clearing
   this cache, there may be something else hooking into the import process. The 
   only way to know, though, would be to do a conflict test: [https://www.wpallimport.com/documentation/troubleshooting/plugin-theme-conflicts/](https://www.wpallimport.com/documentation/troubleshooting/plugin-theme-conflicts/)
 * I can confirm that the opt in filter has not been selected as above.
 * I also have WP Super Cache installed.
 * Thanks
 * Will
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/css-not-loading-when-running-backoffice-import-routine/#post-13214349)
 * could indeed be a butterfly effect, wpallimport triggering plugin X, which triggers
   WP Super Cache, which triggers AO. if you have filesystem access, try monitoring`
   wp-content/cache` for changes when wpallimport is running maybe?
 *  Thread Starter [willjames](https://wordpress.org/support/users/willjames/)
 * (@willjames)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/css-not-loading-when-running-backoffice-import-routine/#post-13273822)
 * I have looked into this – it appears the AOCache folder is being deleted when
   AllImport runs. It also looks like the contents of the supercache folder are 
   deleted, but the folder itself was not.
 * This looks like the code they use but it is above my knowledge level (ctrl f 
   cache on this page)
    [https://pluginarchive.com/wordpress/wp-all-import/v/3-4-6](https://pluginarchive.com/wordpress/wp-all-import/v/3-4-6)
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/css-not-loading-when-running-backoffice-import-routine/#post-13274108)
 * `wp_cache_flush();` only flushes WordPress core’s object cache, so that code 
   is not the culprit no .. :-/
 *  Thread Starter [willjames](https://wordpress.org/support/users/willjames/)
 * (@willjames)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/css-not-loading-when-running-backoffice-import-routine/#post-13274124)
 * not sure what to do here then – I suppose I have to troubleshoot all plugins?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/css-not-loading-when-running-backoffice-import-routine/#post-13274153)
 * what might be happening is that WP Super Cache clears it’s own cache when all-
   in-one runs for some reason and that would cause AO’s cache to vanish as well.
   Test with WPSC off to confirm?
 *  Thread Starter [willjames](https://wordpress.org/support/users/willjames/)
 * (@willjames)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/css-not-loading-when-running-backoffice-import-routine/#post-13274281)
 * Looks like that’s the cause…
    Any thoughts on how to prevent this happening, (
   short of turning off the WP Super Cache? Thanks

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/css-not-loading-when-running-backoffice-import-routine/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/css-not-loading-when-running-backoffice-import-routine/page/2/?output_format=md)

The topic ‘CSS not loading when running backoffice import routine’ is closed to 
new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

## Tags

 * [ao](https://wordpress.org/support/topic-tag/ao/)
 * [css](https://wordpress.org/support/topic-tag/css/)
 * [pageload](https://wordpress.org/support/topic-tag/pageload/)

 * 17 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/css-not-loading-when-running-backoffice-import-routine/page/2/#post-13274790)
 * Status: resolved