Its there a way to clean cache faster?

admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: Its there a way to clean cache faster?

Post by admin »

Hold on.
So if i do not have file cache, and i cant use the Clean Cache button in admin
So what do you do ?
Don't forget to run script update
Gradwank
Posts: 67
Joined: Tue Jan 29, 2013 2:57 pm

Re: Its there a way to clean cache faster?

Post by Gradwank »

i contact my server admin he taking care of manually deleting cache files.
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: Its there a way to clean cache faster?

Post by admin »

But you told that you didn't have it.
Don't forget to run script update
Gradwank
Posts: 67
Joined: Tue Jan 29, 2013 2:57 pm

Re: Its there a way to clean cache faster?

Post by Gradwank »

it wasnt where you said it would be - the admins that setup install are taking care of it.

Please, can you answer question about expiring cache? 24 hrs? or longer would be better for server performance? I wont be doing manual updates to thumb DB again.
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: Its there a way to clean cache faster?

Post by admin »

Where was it ?

Cache of what page ?
yes, longer cache time = less mysql load.
Don't forget to run script update
Gradwank
Posts: 67
Joined: Tue Jan 29, 2013 2:57 pm

Re: Its there a way to clean cache faster?

Post by Gradwank »

admin wrote:Where was it ?
It was in scj/cache as you say -- but admin set up symlink so cache went to another directory (on SSD) so i didnt see it on my FTP in www/ directory.
Cache of what page ?
yes, longer cache time = less mysql load.
Admin want put bit of code in common.php to set expirery -- so the SSD drive not fill up with old cache.

something like this: "if (!defined('CACHE_TIME')) define('CACHE_TIME', 86400);" -- with time being a recommended value by you - 24hrs, 1week, 1 month, etc. what you think would be good?


We have cleaned out old cache files now.

More links are pointing to new gallery URL now (traffic much higher at new URL), but amazingly I still find some that are not. I cleaned out local cache various times on my own browser as well, but still a few sites have thumbs pointing to the old gallery URL. I am out of ideas what might cause this.
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: Its there a way to clean cache faster?

Post by admin »

You have to clean folder scj/cache (or where it is linked to) , not your local cache.

Default cache time is 900 (15 minutes), there's no need to put it there, you can do it in settings.
If it still redirects to old url - either you didn't clean cache on server or you didn't actually changed it in mysql.
Don't forget to run script update
Gradwank
Posts: 67
Joined: Tue Jan 29, 2013 2:57 pm

Re: Its there a way to clean cache faster?

Post by Gradwank »

Looks like admin deleted cache older than 12 hrs from server yesterday, and this is why not every gallery url is updated. Taking care of this now.

Another question: if I update Gallery URL via admin and not manually, will cache update when expired to new URL? Or would i have same issue i have now?
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: Its there a way to clean cache faster?

Post by admin »

It should be ok if you change it in admin.
Don't forget to run script update
Gradwank
Posts: 67
Joined: Tue Jan 29, 2013 2:57 pm

Re: Its there a way to clean cache faster?

Post by Gradwank »

Setting cache_time in common.php doesn't seem to remove OLD cache files from server?


this from my server tech:

"yes, I'm talking about CACHE_TIME in common.php. It seems settings "900" inside admin area don't work for some reason because I see a lot of cache files older than 4-5 days. So it seems files are not purged since our last "full" removing.
Maybe you can consult with scj support regarding this? Maybe some features here."
Post Reply