Git Product home page Git Product logo

Comments (7)

tchoulom avatar tchoulom commented on September 14, 2024

Hey,

For the moment there are not other methods than disk cache to store the stats file.

But, in order to solve this problem, you can for example share the stats file directory via docker-compose.
You can also use google droplet and gaufrette.

if you want to use another File Manager, it must implements the "Tchoulom\ViewCounterBundle\Filesystem\FilesystemInterface"

The service "Tchoulom\ViewCounterBundle\Statistics\Statistics" uses the file Manager in order to save the stats data.

Hope this helps you.

from viewcounterbundle.

tonyellow avatar tonyellow commented on September 14, 2024

I see, thanks for the info. When are the statistics written to file? After each viewcount? Dont see anything about cron. Hope you can clarify!

from viewcounterbundle.

tchoulom avatar tchoulom commented on September 14, 2024

The statistics are written to file after viewcount.
See the service "Tchoulom\ViewCounterBundle\Counter\AbstractViewCounter" , line 186

There is no cron.

from viewcounterbundle.

tonyellow avatar tonyellow commented on September 14, 2024

Ok, so basically you dont want to use droplet for this as local storage would perform much better. Writing after every view count requires much i/o

from viewcounterbundle.

tchoulom avatar tchoulom commented on September 14, 2024

The writing/read system on the disc could indeed be improved.
But you can use droplet in your case as mentioned in my previous posts.

from viewcounterbundle.

tchoulom avatar tchoulom commented on September 14, 2024

For information, the new version 5 offers new features that allow you to have your own statistics storage system.

To use your own statistics storage system, you must:

It is now also possible to avoid the creation of statistical data after each view count: https://github.com/tchoulom/ViewCounterBundle/blob/HEAD/Resources/doc/readme/tools-command-convert-to-stats.md#converts-viewcounter-entities-to-statistical-data

Hope this helps you.

from viewcounterbundle.

tonyellow avatar tonyellow commented on September 14, 2024

The cron is just perfect. Will test today. Thanks!

from viewcounterbundle.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.