Forum

Thread tagged as: Question, Problem

Perch assets cleanup question

As I understand it perch cleans out the assets/resources directory of stuff it no longer recognises as being in use.

Is it possible that latest perch regards items in an old shop (foxycart latest version but yes old) as being out of date and so cans them? User is getting odd instances of losing all their images in their shop except for ones recently added since perch upgraded.

I am trying to track down all possible reasons (and hosting capacity is not one of them).

Is there an automated way to mark a large number of assets as 'permanent'?

Out of interest how often will Perch purge assets?

Charlie Elsey

Charlie Elsey 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

If you had historical problems with the site and resources weren't being logged then it's possible they could get erroneously cleaned up. If you're worried, you can turn the feature off.

Perch terms assets that are permanent as "Library" assets - there's a check box on each asset.

Cleanup is run when content is edited, not on a schedule.

Thanks drew, site always worked v well. How do i disable clean up feature?

Drew McLellan

Drew McLellan 2638 points
Perch Support

define('PERCH_CLEAN_RESOURCES', false);

https://docs.grabaperch.com/perch/configuration/file/