I'm trying to post the following question, but get the

This post does not meet our quality standards

error, with no explanation of what the problem is


Grails query cache being ignored


I have an application which is read-mostly, so most of my queries use the Hibernate 2nd-level query cache. I have one query that must be executed every time a page loads, so I invoke it from the layout GSP like this:

${Book.countByApproved(true, [cache: true])}

I have enabled the 2nd-level cache for the Book class, by adding

static mapping = {
    cache true

to Book.groovy. I also have the following configured in DataSource.groovy

hibernate {
  cache.use_second_level_cache = true
  cache.use_query_cache = true
  cache.region.factory_class = 'net.sf.ehcache.hibernate.EhCacheRegionFactory'

In this same file I've enabled query logging by adding logSql=true in the dataSource block.

Every time I load a page, the Book.countByApproved(true) query is logged, so I assume this means that the results are not being retrieved from the query cache? I'm running everything locally, so there's no possibility that the cache is being missed because the cached query results have expired.

I don't know if this is relevant, but I'm using the Hibernate Filters plugin and have a default filter configured for the Book class. Perhaps there's some issue with using hibernate filters and the query cache?

  • 3
    That .... looks like an atypical question to hit the quality filter ... May 14, 2013 at 9:00
  • 2
    There could be a rational hatred of books (or questions that might discuss them)... May 14, 2013 at 9:02
  • I would guess that the title is the problem, you could try some variations on that. But anyway, this looks like it shouldn't be stopped by the filter May 14, 2013 at 9:02
  • 7
    I changed the title to "Grails query cache is ignored" and this is accepted.....wtf?
    – Dónal
    May 14, 2013 at 9:05
  • 1
    Looks like the filter likes complete sentences, and does not consider being as being (ha) a proper verb. May 14, 2013 at 9:10
  • @FrédéricHamidi well whatever the problem is, at the very least I should be given some info that would help me resolve it
    – Dónal
    May 14, 2013 at 9:11
  • 2
    @Don I believe the lack of info is status-by-design.
    – Bart
    May 14, 2013 at 9:16
  • 2
    @Don, providing more information about what needs to be fixed was discussed (and shot down) here. You also might want to read What can I do when getting “It does not meet our quality standards”. May 14, 2013 at 9:16
  • 9
    Devil's Advocate - What if the quality filter has more false positives when we think - and we just don't hear about them because it's from people's first questions, they get upset that their legitimately good questions are rejected, and leave never to come back rather than ask why on meta (because they don't know about it yet)?
    – Patashu
    May 14, 2013 at 9:20
  • Have you tried to enter just a few lines, for instance the first paragraphs? Then you can edit the question to add the rest, I guess. A bit like the FGITW approach for answers. Not that it would constitute a valid solution, but just to see what happens.
    – Monolo
    May 14, 2013 at 9:21
  • I hope these rejections are at least being logged so the developers can look through them for false positives instead of relying on people complaining on Meta.
    – Wooble
    May 14, 2013 at 11:33

1 Answer 1


I've also faced this problem several times, I beleive this is all because of filtering of common words we use in normal talk like 'being' and 'ignored' as your title contains simple words of english instead of technical words, quality meter of stackoverflow gives you that message Try to use more technical words and it will never irritate you again.

  • 1
    Still the obvious quality of the content should then offset the perceived lack of quality of the title. Much like a spamfilter will never refuse a mail just because 1 or 2 tests failed, it needs to test a lot that break a threshold together. May 14, 2013 at 10:53
  • 1
    You should have clear, accurate titles. -1 for encouraging OP to throw more big words in title to get past quality filter.
    – djechlin
    May 17, 2013 at 22:09
  • Thanks, I'll keep it in my mind
    – user222250
    May 17, 2013 at 22:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .