Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x]: Endless growth of resourcepaths table #16514

Closed
thomas-jaeger opened this issue Jan 24, 2025 · 2 comments
Closed

[4.x]: Endless growth of resourcepaths table #16514

thomas-jaeger opened this issue Jan 24, 2025 · 2 comments

Comments

@thomas-jaeger
Copy link

thomas-jaeger commented Jan 24, 2025

What happened?

Description

In our test environments with nightly builds, the resourcepaths table grows significantly (>6.5 million rows). It appears to be a path cache for assets; the assets are regenerated each night. We haven’t found a way to delete it via the CLI or console.
Can the table be safely truncated (it’s not included in the backup)? Is there a way to do this via the CLI or console?

Craft CMS version

4.13.10

PHP version

8.2

Operating system and version

Linux Container

Database type and version

Postgreql 15.10

Image driver and version

No response

Installed plugins and versions

@brandonkelly
Copy link
Member

brandonkelly commented Jan 26, 2025

It’s safe to truncate, yes. It will get repopulated when assets are re-published as needed.

@brandonkelly
Copy link
Member

I thought the table was getting automatically truncated when control panel resources were cleared (either using the Caches utility or clear-caches/cp-resources command, but apparently not. So just made that the case for Craft 4.15 and 5.7 (37fdca9).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants