Title: CCSS Rules
Last modified: November 13, 2020

---

# CCSS Rules

 *  [willjames](https://wordpress.org/support/users/willjames/)
 * (@willjames)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/ccss-rules/)
 * Hi, I have been making some changes to the site and wanted to refresh everything.
   It looks like the CCSS has got a little confused (or I have).
 * It seems that the system can’t decide whether the archive pages are indeed archives
   or ‘listings’
 * I have highlighted the issues on the screenshot below.
 * There are also too many jobs in the queue – what you advised me to do before 
   was to add some code `b52{rock:lobster;}` to the bottom of a page for an individual
   product listing, rendering it ‘manual’ but I don’t have a page to be able to 
   do that yet.
 * It also seems that none of the jobs are being applied (the status never changes)
 * Thanks for your help
 * [Snapshot](https://snipboard.io/zBNkRc.jpg)

Viewing 13 replies - 1 through 13 (of 13 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/ccss-rules/#post-13659787)
 * hey Will; can you
    1. delete wp-content/uploads/ao_ccss/queuelog.html? 2. delete
   all jobs in the queue? 3. enable debug logging?
 * based in that I can start looking into this.
    frank
 *  Thread Starter [willjames](https://wordpress.org/support/users/willjames/)
 * (@willjames)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/ccss-rules/#post-13660046)
 * Many thanks – all done
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/ccss-rules/#post-13660147)
 * OK, I’m seeing “Queue is already running, skipping the attempt to run it again”,
   so can you also delete `wp-content/uploads/ao_ccss/queue.lock` ?
 *  Thread Starter [willjames](https://wordpress.org/support/users/willjames/)
 * (@willjames)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/ccss-rules/#post-13667904)
 * Hi – I have deleted the file and the huge queue that had built up (turned off
   debug). It is sort of working now, but the queue builds up too quickly again.
   
   As yet it has not run a file for the homepage – nor has it processed a path pased
   file /trucks-for-sale/ that I requested ages ago.
 * Also the target rule/page type is showing the same (listings) for both individual
   products and for (some) archive pages.
 * I think the queue just builds up too quickly for the system to function?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/ccss-rules/#post-13668238)
 * Can you disable “also aggregate inline CSS” and re-clear the queue?
 *  Thread Starter [willjames](https://wordpress.org/support/users/willjames/)
 * (@willjames)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/ccss-rules/#post-13668954)
 * Done that – a new, long list generated with some ‘Uknown’ flags.
 * All we need is one CCSSfor the listing archives, one for listings product page–
   plus a few for the homepage and some statics?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/ccss-rules/#post-13669083)
 * “unknown” jobs generally indicate issues in the communication between your server&
   criticalcss.com I’m afraid ..
 * what you could do to simplify things is create a couple of manual rules for those
   and let the plugin take care of the other automatically?
 *  Thread Starter [willjames](https://wordpress.org/support/users/willjames/)
 * (@willjames)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/ccss-rules/#post-13669233)
 * Not sure I’m up to making a manual one – do I use the CCSS website and copy/paste
   the code?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/ccss-rules/#post-13669356)
 * indeed;
    1. click add rule 2. choose conditional 3. from the dropdown choose 
   the applicable conditional tag 4. generated the critical CSS for a representative
   page for that tag 5. copy/paste the crit. CSS from (4) into the form from (3)
   6. save/ submit
 * do that for your main pages and make sure to save the entire ruleset.
 *  Thread Starter [willjames](https://wordpress.org/support/users/willjames/)
 * (@willjames)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/ccss-rules/#post-13671874)
 * I have added these manual rules, but I am not sure that they are correct (I pay
   for the CCSS service so I don’t have this responsibility.) I have noticed that
   there has only been one API call to my CCSS web account since the 5th November(
   when there were loads) could this indicate a different issue?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/ccss-rules/#post-13671930)
 * > I have added these manual rules, but I am not sure that they are correct (I
   > pay for the CCSS service so I don’t have this responsibility.)
 * well, yes and no; by paying for CCSS you have:
    * AUTO rules being created (which
   is the default really) * but also the possibility to create manual rules * and
   obviously access to criticalcss.com to generate CCSS yourself
 * but I had a quick look around and for the homepage and for /trucks-for-sale/ 
   things look OK really 🙂
 * I would advise to exclude `uploads/2020/09/08/TruckPages.co_.uk_.jpg` from being
   lazyloaded, that will ensure the header does not change size.
 * > I have noticed that there has only been one API call to my CCSS web account
   > since the 5th November (when there were loads) could this indicate a different
   > issue?
 * yes, also see my comment on the U jobs, these typically indicate communication
   issues between your server and the critical CSS server :-/
 *  Thread Starter [willjames](https://wordpress.org/support/users/willjames/)
 * (@willjames)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/ccss-rules/#post-13674170)
 * Many thanks – will start to look at page speed again son.
 * So I need to get in touch with the CCSS team about the server connection?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/ccss-rules/#post-13674265)
 * re. server connection; re-enable “debug logging” for an hour or so (after having
   removed the file maybe, it seems to get quite huge in your case) and then check
   if there is any relevant info in there?

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘CCSS Rules’ 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

 * [ccss](https://wordpress.org/support/topic-tag/ccss/)

 * 13 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/ccss-rules/#post-13674265)
 * Status: not resolved