Comments (7)
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.
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.
The statistics are written to file after viewcount.
See the service "Tchoulom\ViewCounterBundle\Counter\AbstractViewCounter" , line 186
There is no cron.
from viewcounterbundle.
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.
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.
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:
-
configure the statistics storage service : https://github.com/tchoulom/ViewCounterBundle/blob/HEAD/Resources/doc/readme/usage-step-1-5.md#step-3-configuration
-
Your statistics storage service must implement the interface Tchoulom\ViewCounterBundle\Adapter\Storage\StorageAdapterInterface
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.
The cron is just perfect. Will test today. Thanks!
from viewcounterbundle.
Related Issues (13)
- Error in the doc HOT 1
- MySQL Support HOT 1
- Deprecation warning HOT 4
- Support Symfony 7 HOT 1
- Error when installing under Symfony 6.4 HOT 5
- Version 7 Ideas
- Drop unmaintained depdendencies
- Error message in profiler HOT 1
- Does not work with symfony 5 HOT 1
- Error in Symfony 4.4: @MappedSuperclass annotation is not loaded HOT 2
- Error during composer installation during cache:clear HOT 1
- Storage HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from viewcounterbundle.