×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Cache folder blows up above 1gb!!

Cache folder blows up above 1gb!! 7 years 9 months ago #34571

  • Dima um
  • Dima um's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 24
  • Thank you received: 0
Hello Daniel,
Its a while since I've noticed that the cache folder at media\com_hotspots\cache
Blows up beyond proportion, I delete the files all the time to keep it in check.
It actually creates .js cache files without control. Here is a screenshot from FTP after about 4-5 days since I deleted all cache:
prntscr.com/bwu4ug
The "marker" and "config" folders there a bloated up too, but they don't take that much space, about 20mb..
Please advise us on the issue.

Thanks

Cache folder blows up above 1gb!! 7 years 8 months ago #34575

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Dima,

It's cache, it needs to be cleared up periodically. I'll write a cron job that you can then run on your server to clear the cache every 24hours or so.

Regards,
Daniel

Cache folder blows up above 1gb!! 7 years 8 months ago #34578

  • Dima um
  • Dima um's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 24
  • Thank you received: 0
Ok, but does this seem to be normal to you? The amount of generated files and the space they take?
Is this normal HS behavior?

Cache folder blows up above 1gb!! 7 years 8 months ago #34581

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
YEp, it's normal. Those are cache files and can be cleaned any time.
are you using centering by the user's ip? If you are, then you might get a cache file per user. so that's why the cache folder is growing. But there isn't any issue with cleaning it periodically and I'm going to add a cron job for this to the next release.

Regards,
Daniel

Cache folder blows up above 1gb!! 7 years 8 months ago #34583

  • Dima um
  • Dima um's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 24
  • Thank you received: 0
"Centering by the user's ip" - I did not find this option, where is it? Is the amount of cache files have to do with amount of hotspots in the component?
Also aside from cron, there is no option to clean those up, unless you go delete them by ftp or host panel file manager.. Also most people are not aware of this at all.
It seems to me that there must be some way to keep them in check so they not blow up and take so much space..

Another thing that I do not understand: for me it seemed that new cache files where generated all the time but older not deleted. Now, if I understand correctly what you saying,
all the files are relevant? Because if they are all relevant, than deleting them is not desired..
Please clarify this,

Thanks

Cache folder blows up above 1gb!! 7 years 8 months ago #34584

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Why is not deleting the files over the joolma cache component not possible? The files are stored in the cache folder and navigating to the cache manager and selecting the folder to empty should be enough. What's the issue with that? Why do you need ftp?

Cache files are generated per visitor. So if you get a vistior who visits 1000 locations, then we'll generate 1000 files for him.

Cache folder blows up above 1gb!! 7 years 8 months ago #34586

  • Dima um
  • Dima um's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 24
  • Thank you received: 0
I have tested again:
Joomla clear chache deletes the joomla cache folder. Hotspots cache generated there is very small. I am not talking about that cache,
but the folder "media\com_hotspots\cache", contents of which are not deleted from joomla clear cache.

Now about cache per visitor, it does not make any sense to me. The purpose of cache is to make each next visitor load cached copy, but this way it beats the purpose?

Cache folder blows up above 1gb!! 7 years 8 months ago #34629

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Dima,
I've forgotten that I use the media/com_hotspots/cache folder. I thought that I'm only using the joomla cache folder. Now I remember that I wanted to use the cache folder, but due to some limitations I couldn't do it for js and css files and that's why I kept using the media folder. I'll add a function to clear the cache of that folder through the extensions backend.

Regards,
Daniel

Cache folder blows up above 1gb!! 7 years 8 months ago #34631

  • Dima um
  • Dima um's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 24
  • Thank you received: 0
This is a good idea, although the main problem is, as I mentioned, that it grows without control. thousands of cache files.
It seem to be unreasonable amount, and also a person is not expected to go and clean the cache all the time. On the other hand its not clear if those files are really needed..

Cache folder blows up above 1gb!! 7 years 2 months ago #35518

  • Jan Pihl
  • Jan Pihl's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Did you ever make this cache remover.
I have version 5.3.3 and the folder continues growing in cache.
is now over 500 Mb.
1)I cant find the button rto clear cache anywere?
2) Can i just delete all the js files manualy?
3) Isent there a nother way to control this so it is not so big ?

Cache folder blows up above 1gb!! 7 years 2 months ago #35550

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Delete it manually. I moved the tiles creation to the joomla's cache folder. You can delete delete the generated tiles there. But I'm still serving the js cache files form the media folder, because joomla is coming with some .htaccess rules that would prevent serving any js files from the cache folder. Right now the manual delete is the way to go.
  • Page:
  • 1
Time to create page: 0.170 seconds