Title: Optimization
Last modified: April 18, 2020

---

# Optimization

 *  Resolved [NAROLLES](https://wordpress.org/support/users/narolles/)
 * (@narolles)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/optimization-8/)
 * Hello Hector
 * I read your resource warning I don’t know if this message is displayed because
   I may have a problem on my site I have an online press log and it is important
   to me that the display of the number of views is the as honest as possible and
   as updated as possible, that’s why I don’t use the wpp cache service
 * I also use WP Rocket and Rocket CDNce which allows me to have the expected number
   of views with a little delay with the mobile version – refresh every 4 hours
 * The law for the pure online player press obliges me to keep all articles in stock(
   more than 10,000) – and online The average traffic is 50,000 page views per month
   increasing there are a lot of 33 plugins and the sql accept innodb
 * My PlanetHoster server does not accept the Regis module and therefore I cannot
   put a persistent object cache module (as l also indicates the AMP advice)
 * In the configuration there is “log limit” which allows you to destroy the “number
   of views” but after I suppose that the information no longer appears for old 
   articles
    Would it not be possible to provide a sql table with a function that
   would copy the number of views on a given date …. to freeze it … much like the
   limit of comments from a date
 * What do you think ?
    thanks a lot
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Foptimization-8%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/optimization-8/#post-12694475)
 * Hi [@narolles](https://wordpress.org/support/users/narolles/), it’s been a while!
 * If using Redis/Memcached/etc. isn’t an option for you at the moment, you can:
    - Enable [Data Sampling](https://github.com/cabrerahector/wordpress-popular-posts/wiki/7.-Performance#data-sampling)
      to reduce the number of database writes which should help performance. Make
      sure to set your Sampling Rate according to your current traffic levels.
    - Enable Data Sampling **and** [Data Caching](https://github.com/cabrerahector/wordpress-popular-posts/wiki/7.-Performance#caching-db-queries-results)
      for more performance. The latter keeps the running of potentially expensive
      database read operations to the minimum. Make sure to read the documentation
      for more details.
    - Migrate your website to a hosting provider that does provide access to Redis/
      Memcached/APCu.
 * > In the configuration there is “log limit” which allows you to destroy the “
   > number of views” but after I suppose that the information no longer appears
   > for old articles
 * The [Log Limit](https://github.com/cabrerahector/wordpress-popular-posts/wiki/7.-Performance#data-logging)
   feature will delete views data that’s older than _N_ days but the total views
   count doesn’t get affected by this. It’s just the data related to Time Ranges(
   eg. Last 24 Hours, Last 7 Days, etc.) (I probably should add this observation
   to the Wiki.)
 * > Would it not be possible to provide a sql table with a function that would 
   > copy the number of views on a given date …. to freeze it … much like the limit
   > of comments from a date
 * Possible? Yes. However, I imagine that would probably have an impact on performance:
   WPP would then have **two** database tables growing constanly. The plugin would
   double its database read operations under some circumstances/configurations as
   well. It’d also introduce more complexity to the plugin which I’d rather avoid
   if possible.
 *  Thread Starter [NAROLLES](https://wordpress.org/support/users/narolles/)
 * (@narolles)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/optimization-8/#post-12702640)
 * Hello Hector
    Thank you for your clear, quick and simple answers.
 * I have studied your answers
    So I asked my host to put Memcached (it can not 
   Redis) it’s a bit complex to configure but it’s short
 * I activated the WPP cache at 30 min – I prefer this than the sampling, it’s easier
   to check – I will see if I reduce or lengthen after experience –
    Regarding the
   logs limits I write 365 days because I have a page with the stats for one year
   [https://www.jardinerie-animalerie-fleuriste.fr/articles-populaires/](https://www.jardinerie-animalerie-fleuriste.fr/articles-populaires/)
 * I hope I have understood everything and thank you again for your help
    take care
   of yourself Luc
 *  Thread Starter [NAROLLES](https://wordpress.org/support/users/narolles/)
 * (@narolles)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/optimization-8/#post-12702958)
 * Oups I see the trending show widget is out of order 😉
    i removed the wpp cache
   and perahps the config of memcached Follow
 *  Thread Starter [NAROLLES](https://wordpress.org/support/users/narolles/)
 * (@narolles)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/optimization-8/#post-12703032)
 * yes i m desappointed …i removed the define view in memcached
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/optimization-8/#post-12703114)
 * > So I asked my host to put Memcached (it can not Redis)
   >  it’s a bit complex 
   > to configure but it’s short
 * Yeah, configuring Redis/Memcached/etc on a website is not a simple task but it’s
   completely worth it once it’s set up and running. You (almost) never have to 
   think about it again and gives your website a nice performance boost.
 * > I activated the WPP cache at 30 min – I prefer this than the sampling, it’s
   > easier to check – I will see if I reduce or lengthen after experience
 * 30 minutes should be fine. You could go even lower than that if you wanted to
   now that you have Memcached enabled on your site but feel free to experiment 
   with all this and use whichever configuration fits the best for your use case.
 * > I hope I have understood everything and thank you again for your help
   >  take
   > care of yourself
 * It seems you did, and you’re welcome!
 * **Edit:** sounds like I spoke too soon haha
 * Make sure Memcached is properly configured first or else none of this stuff will
   work as expected. Reach out to your developer (or to your hosting if they offer
   that service) and have them look into this for you.
    -  This reply was modified 6 years, 1 month ago by [Hector Cabrera](https://wordpress.org/support/users/hcabrera/).
      Reason: Updated after reading the last two comments left by OP
 *  Thread Starter [NAROLLES](https://wordpress.org/support/users/narolles/)
 * (@narolles)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/optimization-8/#post-12730156)
 * Thank you [@hcabrera](https://wordpress.org/support/users/hcabrera/)
    I successfully
   installed Memcached I could follow all your advices except that of data catching
   when I put the “define” in wp config in true …. the widget “trend now” no longer
   works in back and front end thanks a lot Luc

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

The topic ‘Optimization’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

## Tags

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

 * 6 replies
 * 2 participants
 * Last reply from: [NAROLLES](https://wordpress.org/support/users/narolles/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/optimization-8/#post-12730156)
 * Status: resolved