• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • Chevereto Support CLST

    Support response

    Support checklist

    • Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • Confirm that the server meets the System Requirements
    • Check for any available Hotfix - your issue could be already reported/fixed
    • Read documentation - It will be required to Debug and understand Errors for a faster support response

How can i reset stats?

Status
Not open for further replies.

Kayz

Chevereto Member
🎯Description of the issue

I would like to reset the stats on my site for the amount of images and albums hosted. However i would like to keep the users?
 
🎯Description of the issue

I would like to reset the stats on my site for the amount of images and albums hosted. However i would like to keep the users?
stats will be reseted if you delete the images that are uploaded. Since total images counter counts after how many images are uploaded to your site. If you delete it, then images stats will be 0.
 
stats will be reseted if you delete the images that are uploaded. Since total images counter counts after how many images are uploaded to your site. If you delete it, then images stats will be 0.

Once upon a time i deleted the images via FTP, i also did this again the other day and the counter hasn't changed.
 
Once upon a time i deleted the images via FTP, i also did this again the other day and the counter hasn't changed.
since you are deleting images wrongly, you gota do it through site itself. that's why counter is still remaining as it is, if you don't delete images from within site itself then it won't un-register the images properly.

Every time you upload a image, it get's registered in database and gets a key url or w.e it's called. So when you delete them through ftp all you do is make thumbnails not loading and images won't load either, but keys for images remains since you did not delete it through site.
 
since you are deleting images wrongly, you gota do it through site itself. that's why counter is still remaining as it is, if you don't delete images from within site itself then it won't un-register the images properly.

Every time you upload a image, it get's registered in database and gets a key url or w.e it's called. So when you delete them through ftp all you do is make thumbnails not loading and images won't load either, but keys for images remains since you did not delete it through site.

Makes sense thank you.

What happens to the URL's? Do they disappear? Not Found? Bad SEO?

Any way i can keep the urls and reset the stat?
 
If helps, this is the query used to generate the global stats.

SQL:
UPDATE `chv_stats` SET
stat_images = (SELECT IFNULL(COUNT(*),0) FROM `chv_images`),
stat_albums = (SELECT IFNULL(COUNT(*),0) FROM `chv_albums`),
stat_users = (SELECT IFNULL(COUNT(*),0) FROM `chv_users`),
stat_image_views = (SELECT IFNULL(SUM(image_views),0) FROM `chv_images`),
stat_disk_used = (SELECT IFNULL(SUM(image_size) + SUM(image_thumb_size) + SUM(image_medium_size),0) FROM `chv_images`)
WHERE stat_type = "total";
 
If helps, this is the query used to generate the global stats.

SQL:
UPDATE `chv_stats` SET
stat_images = (SELECT IFNULL(COUNT(*),0) FROM `chv_images`),
stat_albums = (SELECT IFNULL(COUNT(*),0) FROM `chv_albums`),
stat_users = (SELECT IFNULL(COUNT(*),0) FROM `chv_users`),
stat_image_views = (SELECT IFNULL(SUM(image_views),0) FROM `chv_images`),
stat_disk_used = (SELECT IFNULL(SUM(image_size) + SUM(image_thumb_size) + SUM(image_medium_size),0) FROM `chv_images`)
WHERE stat_type = "total";

So by the looks of things this will reset the stats to 0 on the dashboard?

Will the url's to the blank pages be deleted also or will they remain?
 
No, that one recounts all the stats. If you want to start over simply inject "0" in the totals row of the stats table.
 
Status
Not open for further replies.
Back
Top